Lines Matching refs:aes_keylen
54 int aes_keylen; in flexi_aes_keylen() local
58 aes_keylen = 1; in flexi_aes_keylen()
61 aes_keylen = 2; in flexi_aes_keylen()
64 aes_keylen = 3; in flexi_aes_keylen()
67 aes_keylen = -EINVAL; in flexi_aes_keylen()
70 return aes_keylen; in flexi_aes_keylen()
114 int aes_keylen, const u8 *key, in nitrox_skcipher_setkey() argument
134 fctx->w0.aes_keylen = aes_keylen; in nitrox_skcipher_setkey()
146 int aes_keylen; in nitrox_aes_setkey() local
148 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_setkey()
149 if (aes_keylen < 0) { in nitrox_aes_setkey()
153 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_setkey()
244 int aes_keylen, ret; in nitrox_aes_xts_setkey() local
252 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_xts_setkey()
253 if (aes_keylen < 0) { in nitrox_aes_xts_setkey()
262 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_xts_setkey()
271 int aes_keylen; in nitrox_aes_ctr_rfc3686_setkey() local
283 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_ctr_rfc3686_setkey()
284 if (aes_keylen < 0) { in nitrox_aes_ctr_rfc3686_setkey()
288 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_ctr_rfc3686_setkey()