Lines Matching refs:cipher
377 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey_unaligned() local
390 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
398 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey() local
401 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey()
409 return cipher->setkey(tfm, key, keylen); in setkey()
448 struct blkcipher_alg *cipher = &alg->cra_blkcipher; in crypto_blkcipher_ctxsize() local
452 cipher->ivsize) { in crypto_blkcipher_ctxsize()
454 len += cipher->ivsize; in crypto_blkcipher_ctxsize()
723 struct crypto_ablkcipher *cipher; in skcipher_geniv_init() local
725 cipher = crypto_spawn_skcipher(crypto_instance_ctx(inst)); in skcipher_geniv_init()
726 if (IS_ERR(cipher)) in skcipher_geniv_init()
727 return PTR_ERR(cipher); in skcipher_geniv_init()
729 tfm->crt_ablkcipher.base = cipher; in skcipher_geniv_init()
730 tfm->crt_ablkcipher.reqsize += crypto_ablkcipher_reqsize(cipher); in skcipher_geniv_init()