Skip to content

Clarified the constraints on key derivation output and verification functions#213

Merged
athoelke merged 2 commits intoARM-software:mainfrom
athoelke:crypto-clarify-kdf-output-key
Sep 10, 2024
Merged

Clarified the constraints on key derivation output and verification functions#213
athoelke merged 2 commits intoARM-software:mainfrom
athoelke:crypto-clarify-kdf-output-key

Conversation

@athoelke
Copy link
Copy Markdown
Contributor

@athoelke athoelke commented Sep 4, 2024

Clarifications in the key derivation operation:

  • Clarified the constraint on psa_key_derivation_output_key() for algorithms that have a PSA_KEY_DERIVATION_INPUT_PASSWORD input step.
  • Removed the redundant key input constraints on psa_key_derivation_verify_bytes() and psa_key_derivation_verify_key(). These match the policy already checked in psa_key_derivation_input_key().

Fixes #212

@athoelke athoelke added clarification Something is confusing or missing in the documentation Crypto API Issue or PR related to the Cryptography API labels Sep 4, 2024
@athoelke athoelke added this to the Crypto API 1.3 milestone Sep 4, 2024
@athoelke athoelke self-assigned this Sep 4, 2024
@athoelke athoelke changed the title Clarified the constraint on psa_key_derivation_output_key() Clarified the constraints on key derivation output and verification functions Sep 5, 2024
Copy link
Copy Markdown
Contributor

@gilles-peskine-arm gilles-peskine-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@athoelke athoelke merged commit b4d01c0 into ARM-software:main Sep 10, 2024
@athoelke athoelke deleted the crypto-clarify-kdf-output-key branch September 10, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clarification Something is confusing or missing in the documentation Crypto API Issue or PR related to the Cryptography API

Projects

Development

Successfully merging this pull request may close these issues.

Clarify constraints on key output from a key derivation operation

2 participants