Lines Matching refs:tfm
77 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument
80 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey()
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local
102 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt()
136 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument
139 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey()
160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
161 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt()
183 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
184 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt()
209 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync() argument
212 struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_ctr_setkey_sync()
230 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() local
231 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt()
269 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument
272 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_xts_setkey()
276 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
291 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()
294 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in ctr_encrypt_one() argument
296 struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt_one()
321 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt() local
322 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in __xts_crypt()
340 skcipher_request_set_tfm(&subreq, tfm); in __xts_crypt()