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.
#####