Lines Matching defs:tfm

458 static int spacc_aead_setkey(struct crypto_aead *tfm, const u8 *key,
461 struct spacc_aead_ctx *ctx = crypto_aead_ctx(tfm);
466 crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) &
495 static int spacc_aead_setauthsize(struct crypto_aead *tfm,
498 struct spacc_aead_ctx *ctx = crypto_tfm_ctx(crypto_aead_tfm(tfm));
693 static int spacc_aead_cra_init(struct crypto_aead *tfm)
695 struct spacc_aead_ctx *ctx = crypto_aead_ctx(tfm);
696 struct aead_alg *alg = crypto_aead_alg(tfm);
710 tfm,
722 static void spacc_aead_cra_exit(struct crypto_aead *tfm)
724 struct spacc_aead_ctx *ctx = crypto_aead_ctx(tfm);
776 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher);
777 struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm);
817 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher);
818 struct spacc_ablk_ctx *ctx = crypto_tfm_ctx(tfm);
836 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(ablk_req);
837 struct spacc_alg *spacc_alg = to_spacc_skcipher(crypto_skcipher_alg(tfm));
840 ctx = crypto_skcipher_ctx(tfm);
867 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(ablk_req);
868 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
870 struct spacc_ablk_ctx *ctx = crypto_skcipher_ctx(tfm);
926 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
927 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
1001 static int spacc_ablk_init_tfm(struct crypto_skcipher *tfm)
1003 struct spacc_ablk_ctx *ctx = crypto_skcipher_ctx(tfm);
1004 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
1018 crypto_skcipher_set_reqsize(tfm, sizeof(struct spacc_req) +
1022 crypto_skcipher_set_reqsize(tfm, offsetof(struct spacc_req,
1032 static void spacc_ablk_exit_tfm(struct crypto_skcipher *tfm)
1034 struct spacc_ablk_ctx *ctx = crypto_skcipher_ctx(tfm);
1131 struct crypto_alg *alg = req->req->tfm->__crt_alg;