How to use tegra-nvvse-cryptodev.ko

Hi Nvidia exports,

I built GitHub - cryptodev-linux/cryptodev-linux: Cryptodev-linux is a Linux-kernel device that allows user-space access to hardware cryptographic accelerators., and then generate cryptodev.ko, I install it into ubuntu system. I also built test cases, and generate hmac command,
but when I run hmac command, there is an error reported
FAIL: Hash in decrypted data different than in encrypted.
Is NVIDIA crypto design not compatible with GitHub - cryptodev-linux/cryptodev-linux: Cryptodev-linux is a Linux-kernel device that allows user-space access to hardware cryptographic accelerators.?

I also find there is tegra-nvvse-cryptodev.ko in ubuntu system, could you please tell me how to use it?

thanks,
LImeng

hello meng.li,

may I know what’s the actual use-case?
or.. could you please share some scenario for accessing to hardware cryptographic accelerators.

I only want to verify the cryptographic feature on NVIDIA Orin agx.
You can show me any case to do this.

thanks,
LImeng

hello meng.li,

you may refer to developer guide, Security chapter as see-also.

Are these test cases based on tegra-nvvse-cryptodev.ko?
does ubuntu load it when system boots up?

thanks,
Limeng

hello meng.li,

they are not, so, may I know what’s the actual use-case for double check.

My original use case as my description above, I want to install cryptodev.ko in system, and run hmac command

thanks,
Limeng

hello meng.li,

please check $ cat /proc/crypto | grep tegra for the crypto algorithms that can leverage HW SE engine with Linux crypto framework.