Lines Matching refs:tfms
66 * all of a mode's tfms when that mode starts being used. Since each mode may
68 * keyslot; thus, a keyslot may contain tfms for multiple modes. However, to
71 * be used at a time - the rest of the unused tfms have their keys cleared.
78 struct crypto_skcipher *tfms[BLK_ENCRYPTION_MODE_MAX];
101 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key,
122 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw,
196 ciph_req = skcipher_request_alloc(slotp->tfms[slotp->crypto_mode],
630 * Ensure that updates to blk_crypto_keyslots[i].tfms[mode_num]
646 slotp->tfms[mode_num] = crypto_alloc_skcipher(cipher_str, 0, 0);
647 if (IS_ERR(slotp->tfms[mode_num])) {
648 err = PTR_ERR(slotp->tfms[mode_num]);
654 slotp->tfms[mode_num] = NULL;
658 crypto_skcipher_set_flags(slotp->tfms[mode_num],
663 * Ensure that updates to blk_crypto_keyslots[i].tfms[mode_num]
672 crypto_free_skcipher(slotp->tfms[mode_num]);
673 slotp->tfms[mode_num] = NULL;