Lines Matching refs:tfm

68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key,  in aesbs_setkey()  argument
71 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey()
92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local
93 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt()
127 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument
130 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_cbc_setkey()
151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
152 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt()
166 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
167 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt()
192 static int cbc_init(struct crypto_skcipher *tfm) in cbc_init() argument
194 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_init()
204 crypto_skcipher_set_reqsize(tfm, reqsize); in cbc_init()
209 static void cbc_exit(struct crypto_skcipher *tfm) in cbc_exit() argument
211 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_exit()
216 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync() argument
219 struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_ctr_setkey_sync()
237 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() local
238 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt()
270 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in ctr_encrypt_one() argument
272 struct aesbs_ctr_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt_one()
293 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument
296 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_xts_setkey()
299 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
311 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()
314 static int xts_init(struct crypto_skcipher *tfm) in xts_init() argument
316 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_init()
329 static void xts_exit(struct crypto_skcipher *tfm) in xts_exit() argument
331 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_exit()
341 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt() local
342 struct aesbs_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in __xts_crypt()
353 skcipher_request_set_tfm(&subreq, tfm); in __xts_crypt()