Lines Matching refs:tfms
78 struct crypto_skcipher *tfms[BLK_ENCRYPTION_MODE_MAX]; member
101 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_fallback_evict_keyslot()
122 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw, in blk_crypto_fallback_keyslot_program()
196 ciph_req = skcipher_request_alloc(slotp->tfms[slotp->crypto_mode], in blk_crypto_fallback_alloc_cipher_req()
646 slotp->tfms[mode_num] = crypto_alloc_skcipher(cipher_str, 0, 0); in blk_crypto_fallback_start_using_mode()
647 if (IS_ERR(slotp->tfms[mode_num])) { in blk_crypto_fallback_start_using_mode()
648 err = PTR_ERR(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
654 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()
658 crypto_skcipher_set_flags(slotp->tfms[mode_num], in blk_crypto_fallback_start_using_mode()
672 crypto_free_skcipher(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
673 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()