Lines Matching refs:tfms
65 * all of a mode's tfms when that mode starts being used. Since each mode may
67 * keyslot; thus, a keyslot may contain tfms for multiple modes. However, to
70 * be used at a time - the rest of the unused tfms have their keys cleared.
77 struct crypto_skcipher *tfms[BLK_ENCRYPTION_MODE_MAX];
99 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key,
119 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw,
195 ciph_req = skcipher_request_alloc(slotp->tfms[slotp->crypto_mode],
609 * Ensure that updates to blk_crypto_keyslots[i].tfms[mode_num]
625 slotp->tfms[mode_num] = crypto_alloc_skcipher(cipher_str, 0, 0);
626 if (IS_ERR(slotp->tfms[mode_num])) {
627 err = PTR_ERR(slotp->tfms[mode_num]);
633 slotp->tfms[mode_num] = NULL;
637 crypto_skcipher_set_flags(slotp->tfms[mode_num],
642 * Ensure that updates to blk_crypto_keyslots[i].tfms[mode_num]
651 crypto_free_skcipher(slotp->tfms[mode_num]);
652 slotp->tfms[mode_num] = NULL;