Run hmac command failed #356
limeng-linux
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi NIVIDA exports,
I build a NVIDIA Orin AGX yocto project with below command
git clone https://github.com/OE4T/tegra-demo-distro.git
cd tegra-demo-distro
git checkout master
. ./setup-env --machine jetson-agx-orin-devkit build-jetson-agx-orin-devkit
and the add below content into local.conf
IMAGE_INSTALL:append = " cryptodev-tests"
IMAGE_INSTALL:append = " cryptodev-module"
IMAGE_INSTALL:append = " cryptodev-linux"
IMAGE_INSTALL:append = " libcrypto libssl openssl-conf openssl-engines openssl-misc openssl-ossl-module-legacy"
bitbake demo-image-sato
When system up bootup, I run below commands
lsmod | grep crypto
modprobe cryptodev
hmac debug
requested mac CRYPTO_SHA1, got sha1 with driver tegra-se-sha1
HASH test 1: passed
requested mac CRYPTO_MD5_HMAC, got hmac(md5) with driver hmac(md5-generic)
HMAC test 1: passed
requested cipher CRYPTO_AES_CBC and mac CRYPTO_SHA1_HMAC, got cipher cbc(aes) with driver cbc-aes-tegra and hash hmac(sha1) with driver hmac(sha1-ce)
Crypt Test: passed
FAIL: Hash in decrypted data different than in encrypted.
It reports that the mac value is not correct.
Is there anyone who encountered the same issue?
In addition, I found NIVDIA has its own kernel module tegra-nvvse-cryptodev.ko, is it a advance variant of cryptodev.ko of cryptodev-module? is the nvidia crypto driver design compatible with cryptodev-module?
thanks,
Limeng
Beta Was this translation helpful? Give feedback.
All reactions