Closed Nk185 closed 1 year ago
:thinking: It looks rather good :+1:
Do you know if SoftHSM supports these mechanisms? If so I think it'd be good to add tests (yeah, I know this is a chore but it's good as a source of examples and somehow mitigates regressions when others are "improving" your code).
Thanks for your time! :wave:
@wiktor-k The two mechanisms are surely supported in v2.6.1:
Sure, I will add tests over weekends, maybe earlier... How would you like those tests for the EKDF? Should it be a simple derive that makes sure a new symmetric key is created? Or should I also check that an expected key was generated?
Should it be a simple derive that makes sure a new symmetric key is created? Or should I also check that an expected key was generated?
Either is fine for me and I guess we have both variants in existing tests 😅
Thanks for taking care of it!
@wiktor-k Well, apparently, I found some time earlier than I thought 😅 Tests added :)
Added CKM_AES_CBC_ENCRYPT_DATA; Added CKM_GENERIC_SECRET_KEY_GEN; Added prettier
MechanismInfo
fmt.