crypto_aead_aes256gcm_is_available return 0 on ls1021a

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

crypto_aead_aes256gcm_is_available return 0 on ls1021a

1,204 Views
jiye
Contributor V

LS1021a TWR Eva

Kernel 4.19 Debian distro

Hi,

I am trying to use AES256-GCM crypto mechanism to achieve encryption and decryption on my eva kit. 

But when I run 

if (crypto_aead_aes256gcm_is_available() == 0) in C it always return true in this case.

Does any one know if 1021a supports this methods or not ?

If so how to make it available? 

Labels (1)
0 Kudos
4 Replies

985 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to "9.1.1.3 Hardware Offloading with OpenSSL" in LSDK1909 user manual which could be downloaded from Layerscape SDK | NXP 

$ openssl enc -aes-256-gcm -salt -in data.txt -out data.txt.enc

$ openssl enc -aes-256-gcm -d -in data.txt.enc -out data.txt

0 Kudos

985 Views
jiye
Contributor V

Hi Yiping,

It shows me "enc: AEAD ciphers not supported"

pastedImage_1.png

  In order to make AES-256-gcm to work what modules in .conf do I need to enable ? I know the caam_jr does support the gcm(aes) which has loaded on my device

0 Kudos

985 Views
jiye
Contributor V

pastedImage_1.png

The question really comes to :

AES-256-GCM and gcm(aes) are the same thing ?

As the "true" AEAD contains GCM-AES.

pastedImage_1.png

according to table 57

pastedImage_3.png

pastedImage_2.png

Job ring interfaces does enable the gcm(aes)

0 Kudos

985 Views
yipingwang
NXP TechSupport
NXP TechSupport
0 Kudos