Lines Matching refs:tfms
78 struct crypto_sync_skcipher *tfms[BLK_ENCRYPTION_MODE_MAX]; member
101 err = crypto_sync_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_fallback_evict_keyslot()
122 err = crypto_sync_skcipher_setkey(slotp->tfms[crypto_mode], key->bytes, in blk_crypto_fallback_keyslot_program()
224 return slotp->tfms[slotp->crypto_mode]; in blk_crypto_fallback_tfm()
646 slotp->tfms[mode_num] = crypto_alloc_sync_skcipher(cipher_str, in blk_crypto_fallback_start_using_mode()
648 if (IS_ERR(slotp->tfms[mode_num])) { in blk_crypto_fallback_start_using_mode()
649 err = PTR_ERR(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
655 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()
659 crypto_sync_skcipher_set_flags(slotp->tfms[mode_num], in blk_crypto_fallback_start_using_mode()
673 crypto_free_sync_skcipher(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
674 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()