Lines Matching refs:tfm
57 static int aesbs_cbc_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_cbc_set_key() argument
60 struct aesbs_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in aesbs_cbc_set_key()
64 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in aesbs_cbc_set_key()
73 static int aesbs_ctr_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_ctr_set_key() argument
76 struct aesbs_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in aesbs_ctr_set_key()
80 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in aesbs_ctr_set_key()
87 static int aesbs_xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesbs_xts_set_key() argument
90 struct aesbs_xts_ctx *ctx = crypto_tfm_ctx(tfm); in aesbs_xts_set_key()
94 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in aesbs_xts_set_key()
108 struct aesbs_cbc_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in aesbs_cbc_encrypt()
149 struct aesbs_cbc_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in aesbs_cbc_decrypt()
207 struct aesbs_ctr_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in aesbs_ctr_encrypt()
256 struct aesbs_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in aesbs_xts_encrypt()
280 struct aesbs_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in aesbs_xts_decrypt()