Lines Matching refs:keylen
167 unsigned int keylen) in nitrox_skcipher_setkey() argument
192 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_skcipher_setkey()
198 unsigned int keylen) in nitrox_aes_setkey() argument
202 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_setkey()
205 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_setkey()
321 const u8 *key, unsigned int keylen) in nitrox_3des_setkey() argument
324 nitrox_skcipher_setkey(cipher, 0, key, keylen); in nitrox_3des_setkey()
338 const u8 *key, unsigned int keylen) in nitrox_aes_xts_setkey() argument
345 ret = xts_check_key(tfm, key, keylen); in nitrox_aes_xts_setkey()
349 keylen /= 2; in nitrox_aes_xts_setkey()
351 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_xts_setkey()
357 memcpy(fctx->auth.u.key2, (key + keylen), keylen); in nitrox_aes_xts_setkey()
359 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_xts_setkey()
363 const u8 *key, unsigned int keylen) in nitrox_aes_ctr_rfc3686_setkey() argument
370 if (keylen < CTR_RFC3686_NONCE_SIZE) in nitrox_aes_ctr_rfc3686_setkey()
375 memcpy(fctx->crypto.iv, key + (keylen - CTR_RFC3686_NONCE_SIZE), in nitrox_aes_ctr_rfc3686_setkey()
378 keylen -= CTR_RFC3686_NONCE_SIZE; in nitrox_aes_ctr_rfc3686_setkey()
380 aes_keylen = flexi_aes_keylen(keylen); in nitrox_aes_ctr_rfc3686_setkey()
383 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_ctr_rfc3686_setkey()