Lines Matching refs:cipher
362 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey_unaligned() local
375 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
383 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey() local
386 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey()
394 return cipher->setkey(tfm, key, keylen); in setkey()
433 struct blkcipher_alg *cipher = &alg->cra_blkcipher; in crypto_blkcipher_ctxsize() local
437 cipher->ivsize) { in crypto_blkcipher_ctxsize()
439 len += cipher->ivsize; in crypto_blkcipher_ctxsize()
680 struct crypto_ablkcipher *cipher; in skcipher_geniv_init() local
682 cipher = crypto_spawn_skcipher(crypto_instance_ctx(inst)); in skcipher_geniv_init()
683 if (IS_ERR(cipher)) in skcipher_geniv_init()
684 return PTR_ERR(cipher); in skcipher_geniv_init()
686 tfm->crt_ablkcipher.base = cipher; in skcipher_geniv_init()
687 tfm->crt_ablkcipher.reqsize += crypto_ablkcipher_reqsize(cipher); in skcipher_geniv_init()