Lines Matching defs:tfm

131 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key,
134 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
139 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm,
142 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
145 ret = xts_verify_key(tfm, in_key, key_len);
156 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm,
160 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
175 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
176 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
196 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
216 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
217 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
245 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
246 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
273 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
274 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
282 skcipher_request_set_tfm(&subreq, tfm);
330 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
331 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
339 skcipher_request_set_tfm(&subreq, tfm);
385 static int __maybe_unused essiv_cbc_init_tfm(struct crypto_skcipher *tfm)
387 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
394 static void __maybe_unused essiv_cbc_exit_tfm(struct crypto_skcipher *tfm)
396 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
403 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
404 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
425 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
426 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
447 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
448 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
484 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst)
486 const struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
509 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
510 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
529 skcipher_request_set_tfm(&subreq, tfm);
581 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
582 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
601 skcipher_request_set_tfm(&subreq, tfm);
772 static int cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key,
775 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
789 static int cmac_setkey(struct crypto_shash *tfm, const u8 *in_key,
792 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
797 err = cbcmac_setkey(tfm, in_key, key_len);
813 static int xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key,
822 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
827 err = cbcmac_setkey(tfm, in_key, key_len);
836 return cbcmac_setkey(tfm, key, sizeof(key));
882 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
922 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
934 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);