Lines Matching refs:essiv_cipher
54 struct crypto_cipher *essiv_cipher; member
89 crypto_cipher_clear_flags(tctx->essiv_cipher, CRYPTO_TFM_REQ_MASK); in essiv_skcipher_setkey()
90 crypto_cipher_set_flags(tctx->essiv_cipher, in essiv_skcipher_setkey()
93 err = crypto_cipher_setkey(tctx->essiv_cipher, salt, in essiv_skcipher_setkey()
96 crypto_cipher_get_flags(tctx->essiv_cipher) & in essiv_skcipher_setkey()
132 crypto_cipher_clear_flags(tctx->essiv_cipher, CRYPTO_TFM_REQ_MASK); in essiv_aead_setkey()
133 crypto_cipher_set_flags(tctx->essiv_cipher, crypto_aead_get_flags(tfm) & in essiv_aead_setkey()
135 err = crypto_cipher_setkey(tctx->essiv_cipher, salt, in essiv_aead_setkey()
137 crypto_aead_set_flags(tfm, crypto_cipher_get_flags(tctx->essiv_cipher) & in essiv_aead_setkey()
164 crypto_cipher_encrypt_one(tctx->essiv_cipher, req->iv, req->iv); in essiv_skcipher_crypt()
205 crypto_cipher_encrypt_one(tctx->essiv_cipher, req->iv, req->iv); in essiv_aead_crypt()
286 struct crypto_cipher *essiv_cipher; in essiv_init_tfm() local
290 essiv_cipher = crypto_alloc_cipher(ictx->essiv_cipher_name, 0, 0); in essiv_init_tfm()
291 if (IS_ERR(essiv_cipher)) in essiv_init_tfm()
292 return PTR_ERR(essiv_cipher); in essiv_init_tfm()
300 tctx->essiv_cipher = essiv_cipher; in essiv_init_tfm()
306 crypto_free_cipher(essiv_cipher); in essiv_init_tfm()
373 crypto_free_cipher(tctx->essiv_cipher); in essiv_skcipher_exit_tfm()
382 crypto_free_cipher(tctx->essiv_cipher); in essiv_aead_exit_tfm()