Home
last modified time | relevance | path

Searched refs:aes_keylen (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c166 int aes_keylen, const u8 *key, in nitrox_skcipher_setkey() argument
188 flags->w0.aes_keylen = aes_keylen; in nitrox_skcipher_setkey()
200 int aes_keylen; in nitrox_aes_setkey() local
202 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_setkey()
203 if (aes_keylen < 0) in nitrox_aes_setkey()
205 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_setkey()
342 int aes_keylen, ret; in nitrox_aes_xts_setkey() local
350 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_xts_setkey()
351 if (aes_keylen < 0) in nitrox_aes_xts_setkey()
358 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_xts_setkey()
[all …]
H A Dnitrox_req.h157 u64 aes_keylen : 2; member
171 u64 aes_keylen : 2;
536 int aes_keylen; in flexi_aes_keylen() local
540 aes_keylen = 1; in flexi_aes_keylen()
543 aes_keylen = 2; in flexi_aes_keylen()
546 aes_keylen = 3; in flexi_aes_keylen()
549 aes_keylen = -EINVAL; in flexi_aes_keylen()
552 return aes_keylen; in flexi_aes_keylen()
H A Dnitrox_aead.c36 int aes_keylen; in nitrox_aes_gcm_setkey() local
41 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_gcm_setkey()
42 if (aes_keylen < 0) in nitrox_aes_gcm_setkey()
48 flags.w0.aes_keylen = aes_keylen; in nitrox_aes_gcm_setkey()