Lines Matching refs:cipher
243 struct crypto_cipher *cipher; in init_tfm() local
249 cipher = crypto_spawn_cipher(spawn); in init_tfm()
250 if (IS_ERR(cipher)) in init_tfm()
251 return PTR_ERR(cipher); in init_tfm()
253 if (crypto_cipher_blocksize(cipher) != XTS_BLOCK_SIZE) { in init_tfm()
255 crypto_free_cipher(cipher); in init_tfm()
259 ctx->child = cipher; in init_tfm()
261 cipher = crypto_spawn_cipher(spawn); in init_tfm()
262 if (IS_ERR(cipher)) { in init_tfm()
264 return PTR_ERR(cipher); in init_tfm()
268 if (crypto_cipher_blocksize(cipher) != XTS_BLOCK_SIZE) { in init_tfm()
269 crypto_free_cipher(cipher); in init_tfm()
275 ctx->tweak = cipher; in init_tfm()