Lines Matching refs:cipher
378 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey_unaligned() local
391 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
399 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey() local
402 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey()
410 return cipher->setkey(tfm, key, keylen); in setkey()
449 struct blkcipher_alg *cipher = &alg->cra_blkcipher; in crypto_blkcipher_ctxsize() local
453 cipher->ivsize) { in crypto_blkcipher_ctxsize()
455 len += cipher->ivsize; in crypto_blkcipher_ctxsize()
724 struct crypto_ablkcipher *cipher; in skcipher_geniv_init() local
726 cipher = crypto_spawn_skcipher(crypto_instance_ctx(inst)); in skcipher_geniv_init()
727 if (IS_ERR(cipher)) in skcipher_geniv_init()
728 return PTR_ERR(cipher); in skcipher_geniv_init()
730 tfm->crt_ablkcipher.base = cipher; in skcipher_geniv_init()
731 tfm->crt_ablkcipher.reqsize += crypto_ablkcipher_reqsize(cipher); in skcipher_geniv_init()