Hi,
im working on the lx2160a with the sec engine. I can use the accelerators for hashing and ciphers successfully but I am struggling with use it for AEAD. I'm using the af_alg socket to communicate with the linux crypto api. At the marked position i get the error invalid Argument. I have no idead what to change, since i followed the documentation fof the kernel for the crypto api user interface.
Thanks in advance
TD
Sorry for the delay. here is the update:
#####
Can you check if you are setting up the sockaddr_alg structure correctly?
Following is one example.
struct sockaddr_alg sa = {
.salg_family = AF_ALG,
.salg_type = "aead", /* this selects the symmetric cipher */
.salg_name = "gcm(aes)" /* this is the cipher name */
};
The thing is that this is a standard Linux interface. We (NXP) can only control the ciphers registered by the SEC driver.
Also, it would be good know which specific algorithm are you trying to use.
#####