-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ta: pkcs11: processing.c: calculate KCV on key generation
Modify generate_random_key_value() to fill in the CKA_CHECK_VALUE with the key check value (KCV) after CKA_VALUE is filled. The template passed to C_GenerateKey() can set CKA_CHECK_VALUE attribute. In which case we should not omit it but ensure it complies with a valid value, that is either a zero-sized value or the value the pkcs11 TA also computes. Other values for this attribute should error with return code CKR_ATTRIBUTE_VALUE_INVALID. Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com>
- Loading branch information
1 parent
7372ab0
commit 761ed24
Showing
1 changed file
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters