How to use AES on NitroKey HSM2


#1

Hi, I’m playing with the NitroKey HSM2, and so far I’m able to use the asymmetric part.
The specs list AES among the supported algorithms, and I’ve been able to generate an AES key on the device using the scsh3 GUI.
But now I don’t know how to encrypt with that AES key. Is there any reference/example about that?


#2

Support for AES is available in the sc-hsm-embedded PKCS#11 module. See the aes branch for the current development version.


#3

Examples how to use it are available here and here.


#4

Thanks a lot, that’s indeed what I was looking for