Lines Matching refs:cipher
364 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey_unaligned() local
377 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
385 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey() local
388 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey()
396 return cipher->setkey(tfm, key, keylen); in setkey()
435 struct blkcipher_alg *cipher = &alg->cra_blkcipher; in crypto_blkcipher_ctxsize() local
439 cipher->ivsize) { in crypto_blkcipher_ctxsize()
441 len += cipher->ivsize; in crypto_blkcipher_ctxsize()
712 struct crypto_ablkcipher *cipher; in skcipher_geniv_init() local
714 cipher = crypto_spawn_skcipher(crypto_instance_ctx(inst)); in skcipher_geniv_init()
715 if (IS_ERR(cipher)) in skcipher_geniv_init()
716 return PTR_ERR(cipher); in skcipher_geniv_init()
718 tfm->crt_ablkcipher.base = cipher; in skcipher_geniv_init()
719 tfm->crt_ablkcipher.reqsize += crypto_ablkcipher_reqsize(cipher); in skcipher_geniv_init()