Mastercard / pkcs11-tools

A set of tools to manage objects on PKCS#11 cryptographic tokens. Compatible with many PKCS#11 library, including major HSM brands, NSS and softoken.
Other
162 stars 33 forks source link

AES support #47

Closed embetrix closed 1 year ago

embetrix commented 1 year ago

in the README.md it said it support AES operations but I could'nt find the implementation anywhere in the code !

keldonin commented 1 year ago

Hi @embetrix ,

AES is indeed fully supported - as long as the underlying PKCS#11 library supports it. Use p11slotinfo on your library and look for mechanisms that have AES in the name, to make sure.

Here is an example of code (that implements AES key generation): https://github.com/Mastercard/pkcs11-tools/blob/d29802e8ee7b3f6d863231083788fd4d5d96d087/lib/pkcs11_keygen.c#L61

Hope this helps,