pkcs11 icon indicating copy to clipboard operation
pkcs11 copied to clipboard

AES-GCM support

Open spencescu opened this issue 5 years ago • 3 comments
trafficstars

We are trying to implement AES-GCM via this ruby gem and we are running into issues. Is this algorithm supported?

spencescu avatar Feb 19 '20 17:02 spencescu

Yes the gem supports AES-GCM. But your PKCS11 library must support it as well. You need to use PKCS11::CKM_AES_GCM and CK_GCM_PARAMS.

If your library doesn't support GCM, then it's still possible to implement it based on AES-CBC. I did this for an HSM supporting only older algorithms. If it helps, I can provide the code.

larskanis avatar Feb 20 '20 19:02 larskanis

@spencescu Is this issue solved?

larskanis avatar Mar 04 '20 11:03 larskanis

Due to lack of time we solved it in a different way but at some point I would like to validate this solution...

On Wed, Mar 4, 2020 at 1:49 PM Lars Kanis [email protected] wrote:

@spencescu https://github.com/spencescu Is this issue solved?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/larskanis/pkcs11/issues/12?email_source=notifications&email_token=ACQMLMTUWPSJTITDVDGDDVDRFY53LA5CNFSM4KX5QW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXPUIA#issuecomment-594475552, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQMLMVPDCZ4XQ3I7TYB7VDRFY53LANCNFSM4KX5QW2Q .

-- Sherman Pencescu, MSc, CISSP Virtual Security, a division of Mar-A-Mar Travel, LLC https://www.virtualsecurity.guru

spencescu avatar Mar 10 '20 18:03 spencescu