Mistaken assumption in HMAC key definition and export format #183
Labels
bug
Something is incorrect or inconsistent in the documentation
Crypto API
Issue or PR related to the Cryptography API
Milestone
While reworking the key formats and derivation methods (see the open issue in #177), I have noticed a long-term anomaly in the specification. HMAC keys describe being truncated on import, based on the block size of the associated hash algorithm. See
PSA_KEY_TYPE_HMAC
, and also the entry for HMAC keys in Key formats.The latter is written as if the HMAC key is parameterised:
This is clearly wrong. Only the HMAC algorithm is parameterised.
The text was updated successfully, but these errors were encountered: