Lines Matching refs:tfm

137 static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key,  in ce_aes_setkey()  argument
140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ce_aes_setkey()
150 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key() argument
153 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_set_key()
156 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key()
169 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local
170 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
189 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local
190 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
210 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt_walk() local
211 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_walk()
240 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt_walk() local
241 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt_walk()
269 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() local
270 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cts_cbc_encrypt()
278 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt()
327 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() local
328 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cts_cbc_decrypt()
336 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_decrypt()
385 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() local
386 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt()
421 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in ctr_encrypt_one() argument
423 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt_one()
446 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local
447 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt()
466 skcipher_request_set_tfm(&subreq, tfm); in xts_encrypt()
518 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local
519 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_decrypt()
538 skcipher_request_set_tfm(&subreq, tfm); in xts_decrypt()