Lines Matching refs:keylen
376 unsigned int keylen) in setkey_unaligned() argument
384 absize = keylen + alignmask; in setkey_unaligned()
390 memcpy(alignbuffer, key, keylen); in setkey_unaligned()
391 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
392 memset(alignbuffer, 0, keylen); in setkey_unaligned()
397 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() argument
402 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey()
408 return setkey_unaligned(tfm, key, keylen); in setkey()
410 return cipher->setkey(tfm, key, keylen); in setkey()
414 unsigned int keylen) in async_setkey() argument
416 return setkey(crypto_ablkcipher_tfm(tfm), key, keylen); in async_setkey()
587 unsigned int keylen); in skcipher_geniv_alloc()