Skip to content

Fail PACE/CA when ECDH/DH derive fails - #278

Open
bahadirtmzr wants to merge 1 commit into
AndyQ:mainfrom
bahadirtmzr:fix/shared-secret-errors
Open

Fail PACE/CA when ECDH/DH derive fails#278
bahadirtmzr wants to merge 1 commit into
AndyQ:mainfrom
bahadirtmzr:fix/shared-secret-errors

Conversation

@bahadirtmzr

Copy link
Copy Markdown

OpenSSLUtils.computeSharedSecret() logged OpenSSL errors and still returned a zeroed buffer. Chip Authentication and PACE then derived session keys from that.

On derive failure the function now returns an empty array. CA throws ChipAuthenticationFailed. PACE throws PACEError. Shared secret and MRZ key material are no longer logged.

computeSharedSecret() logged OpenSSL errors and still returned a
zeroed buffer. Chip Authentication and PACE then derived SM keys
from that. Return empty on failure and abort those protocols.
Also stop logging the shared secret and PACE MRZ key material.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant