Lines Matching defs:tfm

87 	struct crypto_aead *tfm;
90 tfm = crypto_aead_reqtfm(req);
94 crypto_aead_authsize(tfm)) != 0)
411 static int otx2_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm,
414 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
419 ret = xts_verify_key(tfm, key, keylen);
443 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key,
446 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
460 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
463 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
491 static int otx2_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm,
494 return cpt_aes_setkey(tfm, key, keylen, OTX2_CPT_AES_CBC);
497 static int otx2_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm,
500 return cpt_aes_setkey(tfm, key, keylen, OTX2_CPT_AES_ECB);
503 static int otx2_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm,
506 return cpt_des_setkey(tfm, key, keylen, OTX2_CPT_DES3_CBC);
509 static int otx2_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm,
512 return cpt_des_setkey(tfm, key, keylen, OTX2_CPT_DES3_ECB);
535 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm);
536 struct crypto_alg *alg = tfm->__crt_alg;
562 static void otx2_cpt_skcipher_exit(struct crypto_skcipher *tfm)
564 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
593 struct crypto_tfm *tfm = crypto_aead_tfm(atfm);
594 struct crypto_alg *alg = tfm->__crt_alg;
665 static int otx2_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm)
667 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA1);
670 static int otx2_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm)
672 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA256);
675 static int otx2_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm)
677 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA384);
680 static int otx2_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm)
682 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA512);
685 static int otx2_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm)
687 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA1);
690 static int otx2_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm)
692 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA256);
695 static int otx2_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm)
697 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA384);
700 static int otx2_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm)
702 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA512);
705 static int otx2_cpt_aead_gcm_aes_init(struct crypto_aead *tfm)
707 return cpt_aead_init(tfm, OTX2_CPT_AES_GCM, OTX2_CPT_MAC_NULL);
710 static void otx2_cpt_aead_exit(struct crypto_aead *tfm)
712 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx_dma(tfm);
727 static int otx2_cpt_aead_gcm_set_authsize(struct crypto_aead *tfm,
730 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx_dma(tfm);
735 tfm->authsize = authsize;
743 static int otx2_cpt_aead_set_authsize(struct crypto_aead *tfm,
746 tfm->authsize = authsize;
751 static int otx2_cpt_aead_null_set_authsize(struct crypto_aead *tfm,
754 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx_dma(tfm);
757 tfm->authsize = authsize;
772 sdesc->shash.tfm = alg;
1045 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1046 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx_dma(tfm);
1049 int mac_len = crypto_aead_authsize(tfm);
1064 memcpy(fctx->enc.encr_iv, req->iv, crypto_aead_ivsize(tfm));
1136 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1137 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx_dma(tfm);
1295 /* Store the cipher tfm and then use the fallback tfm */
1315 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1316 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx_dma(tfm);
1338 create_aead_output_list(req, enc, crypto_aead_authsize(tfm));
1343 crypto_aead_authsize(tfm));
1345 crypto_aead_authsize(tfm));