Lines Matching defs:tfm

137 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key,
140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
145 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm,
148 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
151 ret = xts_verify_key(tfm, in_key, key_len);
162 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm,
166 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
182 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
201 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
202 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
222 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
223 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
251 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
252 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
279 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
280 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
288 skcipher_request_set_tfm(&subreq, tfm);
336 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
337 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
345 skcipher_request_set_tfm(&subreq, tfm);
391 static int __maybe_unused essiv_cbc_init_tfm(struct crypto_skcipher *tfm)
393 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
400 static void __maybe_unused essiv_cbc_exit_tfm(struct crypto_skcipher *tfm)
402 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
409 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
410 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
431 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
432 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
453 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
454 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
499 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
500 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
543 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
544 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
563 skcipher_request_set_tfm(&subreq, tfm);
615 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
616 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
635 skcipher_request_set_tfm(&subreq, tfm);
800 static int cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key,
803 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
817 static int cmac_setkey(struct crypto_shash *tfm, const u8 *in_key,
820 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
825 err = cbcmac_setkey(tfm, in_key, key_len);
841 static int xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key,
850 struct mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
855 err = cbcmac_setkey(tfm, in_key, key_len);
864 return cbcmac_setkey(tfm, key, sizeof(key));
910 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
950 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
962 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);