Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrf noup] Implement Spake2pVerifier for PSA crypto #514

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

Damian-Nordic
Copy link
Contributor

When Spake2+ implementation for PSA crypto API is enabled:

  • do not build the generic Spake2p nor its subclasses
  • do not build Spake2pVerifier::Generate method that generates the verifier key out of the passcode, salt and iteration count.

Instead, provide the implementation Spake2pVerifier::Generate that uses PSA crypto API.

Note that using Spake2pVerifier::Generate requires setting CONFIG_PSA_WANT_ALG_PBKDF2_HMAC and
CONFIG_PSA_WANT_KEY_TYPE_SPAKE2P_KEY_PAIR_DERIVE Kconfig options.

When Spake2+ implementation for PSA crypto API is enabled:
- do not build the generic Spake2p nor its subclasses
- do not build Spake2pVerifier::Generate method that
  generates the verifier key out of the passcode, salt and
  iteration count.

Instead, provide the implementation Spake2pVerifier::Generate
that uses PSA crypto API.

Note that using Spake2pVerifier::Generate requires setting
CONFIG_PSA_WANT_ALG_PBKDF2_HMAC and
CONFIG_PSA_WANT_KEY_TYPE_SPAKE2P_KEY_PAIR_DERIVE Kconfig
options.

Signed-off-by: Damian Krolik <[email protected]>
@Damian-Nordic Damian-Nordic merged commit aa2e056 into nrfconnect:master Nov 27, 2024
8 checks passed
@Damian-Nordic Damian-Nordic deleted the spake2pverifier branch November 27, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants