Lines Matching refs:cipher
801 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); in skcipher_setkey_unaligned() local
813 ret = cipher->setkey(tfm, alignbuffer, keylen); in skcipher_setkey_unaligned()
821 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); in skcipher_setkey() local
825 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in skcipher_setkey()
833 err = cipher->setkey(tfm, key, keylen); in skcipher_setkey()
1111 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in skcipher_setkey_simple() local
1114 crypto_cipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK); in skcipher_setkey_simple()
1115 crypto_cipher_set_flags(cipher, crypto_skcipher_get_flags(tfm) & in skcipher_setkey_simple()
1117 err = crypto_cipher_setkey(cipher, key, keylen); in skcipher_setkey_simple()
1118 crypto_skcipher_set_flags(tfm, crypto_cipher_get_flags(cipher) & in skcipher_setkey_simple()
1128 struct crypto_cipher *cipher; in skcipher_init_tfm_simple() local
1130 cipher = crypto_spawn_cipher(spawn); in skcipher_init_tfm_simple()
1131 if (IS_ERR(cipher)) in skcipher_init_tfm_simple()
1132 return PTR_ERR(cipher); in skcipher_init_tfm_simple()
1134 ctx->cipher = cipher; in skcipher_init_tfm_simple()
1142 crypto_free_cipher(ctx->cipher); in skcipher_exit_tfm_simple()