-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
AES_CBC_ENCRYPT_DATA mechanism for deriveKey #100
Comments
You will have to review the SoftHSM source and see what they expect for this call. |
Hmmm...been doing that for the past few hours. I thought data and type were my 'eureka' moments, but that ended up making me go a step backwards. Was this table generated with any examples to back it up? https://github.com/PeculiarVentures/graphene/blob/master/capabilities/SoftHSM2.md Thanks, |
That table was generated with https://github.com/PeculiarVentures/graphene-cli |
@jahluwalia I have added new version of the |
Thank you very much for that. We JUST got it working a couple hours ago before your changes. We wrote our own AesCBCEncryptDataParams class that exported teh iv, type, and data. After that, he problem on our side was we were only sending in 16 bytes of data as opposed to 32. When we upgrade, we'll switch to your class. Thank you for your help. Thanks, |
@jahluwalia we are always curious to hear what others are doing, if you can share please do. Either way, we are happy to see your working now |
I'm trying to get deriveKey working with AES_CBC_ENCRYPT_DATA set as the mechansim. I noticed that your AesCbc params are missing type and data in the toCKI method. When i tried implementing my own function, SoftHSM2 returns CKR_FUNCTION_FAILED. If i use yours, i get CKR_MECHANISM_PARAM_INVALID, presumably because the data is missing. Any suggestions?
thanks,
jas
The text was updated successfully, but these errors were encountered: