Lines Matching refs:tfm
74 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument
77 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey()
98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local
99 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt()
133 static int aesbs_cbc_ctr_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_ctr_setkey() argument
136 struct aesbs_cbc_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_ctr_setkey()
158 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
159 struct aesbs_cbc_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt()
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
182 struct aesbs_cbc_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt()
209 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() local
210 struct aesbs_cbc_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt()
251 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument
254 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_xts_setkey()
258 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
273 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()
280 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt() local
281 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in __xts_crypt()
299 skcipher_request_set_tfm(&subreq, tfm); in __xts_crypt()