• Home
  • Raw
  • Download

Lines Matching refs:tfm

86 	struct crypto_aead *tfm;  in validate_hmac_cipher_null()  local
89 tfm = crypto_aead_reqtfm(req); in validate_hmac_cipher_null()
93 crypto_aead_authsize(tfm)) != 0) in validate_hmac_cipher_null()
407 static int otx2_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_xts_setkey() argument
410 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in otx2_cpt_skcipher_xts_setkey()
415 ret = xts_check_key(crypto_skcipher_tfm(tfm), key, keylen); in otx2_cpt_skcipher_xts_setkey()
439 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey() argument
442 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in cpt_des_setkey()
456 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_aes_setkey() argument
459 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in cpt_aes_setkey()
487 static int otx2_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_cbc_aes_setkey() argument
490 return cpt_aes_setkey(tfm, key, keylen, OTX2_CPT_AES_CBC); in otx2_cpt_skcipher_cbc_aes_setkey()
493 static int otx2_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_ecb_aes_setkey() argument
496 return cpt_aes_setkey(tfm, key, keylen, OTX2_CPT_AES_ECB); in otx2_cpt_skcipher_ecb_aes_setkey()
499 static int otx2_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_cbc_des3_setkey() argument
502 return cpt_des_setkey(tfm, key, keylen, OTX2_CPT_DES3_CBC); in otx2_cpt_skcipher_cbc_des3_setkey()
505 static int otx2_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_ecb_des3_setkey() argument
508 return cpt_des_setkey(tfm, key, keylen, OTX2_CPT_DES3_ECB); in otx2_cpt_skcipher_ecb_des3_setkey()
531 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in otx2_cpt_enc_dec_init() local
532 struct crypto_alg *alg = tfm->__crt_alg; in otx2_cpt_enc_dec_init()
546 static void otx2_cpt_skcipher_exit(struct crypto_skcipher *tfm) in otx2_cpt_skcipher_exit() argument
548 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in otx2_cpt_skcipher_exit()
576 struct crypto_tfm *tfm = crypto_aead_tfm(atfm); in cpt_aead_init() local
577 struct crypto_alg *alg = tfm->__crt_alg; in cpt_aead_init()
637 static int otx2_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm) in otx2_cpt_aead_cbc_aes_sha1_init() argument
639 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA1); in otx2_cpt_aead_cbc_aes_sha1_init()
642 static int otx2_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm) in otx2_cpt_aead_cbc_aes_sha256_init() argument
644 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA256); in otx2_cpt_aead_cbc_aes_sha256_init()
647 static int otx2_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm) in otx2_cpt_aead_cbc_aes_sha384_init() argument
649 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA384); in otx2_cpt_aead_cbc_aes_sha384_init()
652 static int otx2_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm) in otx2_cpt_aead_cbc_aes_sha512_init() argument
654 return cpt_aead_init(tfm, OTX2_CPT_AES_CBC, OTX2_CPT_SHA512); in otx2_cpt_aead_cbc_aes_sha512_init()
657 static int otx2_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm) in otx2_cpt_aead_ecb_null_sha1_init() argument
659 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA1); in otx2_cpt_aead_ecb_null_sha1_init()
662 static int otx2_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm) in otx2_cpt_aead_ecb_null_sha256_init() argument
664 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA256); in otx2_cpt_aead_ecb_null_sha256_init()
667 static int otx2_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm) in otx2_cpt_aead_ecb_null_sha384_init() argument
669 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA384); in otx2_cpt_aead_ecb_null_sha384_init()
672 static int otx2_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm) in otx2_cpt_aead_ecb_null_sha512_init() argument
674 return cpt_aead_init(tfm, OTX2_CPT_CIPHER_NULL, OTX2_CPT_SHA512); in otx2_cpt_aead_ecb_null_sha512_init()
677 static int otx2_cpt_aead_gcm_aes_init(struct crypto_aead *tfm) in otx2_cpt_aead_gcm_aes_init() argument
679 return cpt_aead_init(tfm, OTX2_CPT_AES_GCM, OTX2_CPT_MAC_NULL); in otx2_cpt_aead_gcm_aes_init()
682 static void otx2_cpt_aead_exit(struct crypto_aead *tfm) in otx2_cpt_aead_exit() argument
684 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx(tfm); in otx2_cpt_aead_exit()
698 static int otx2_cpt_aead_gcm_set_authsize(struct crypto_aead *tfm, in otx2_cpt_aead_gcm_set_authsize() argument
701 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx(tfm); in otx2_cpt_aead_gcm_set_authsize()
706 tfm->authsize = authsize; in otx2_cpt_aead_gcm_set_authsize()
714 static int otx2_cpt_aead_set_authsize(struct crypto_aead *tfm, in otx2_cpt_aead_set_authsize() argument
717 tfm->authsize = authsize; in otx2_cpt_aead_set_authsize()
722 static int otx2_cpt_aead_null_set_authsize(struct crypto_aead *tfm, in otx2_cpt_aead_null_set_authsize() argument
725 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx(tfm); in otx2_cpt_aead_null_set_authsize()
728 tfm->authsize = authsize; in otx2_cpt_aead_null_set_authsize()
743 sdesc->shash.tfm = alg; in alloc_sdesc()
1021 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in create_aead_ctx_hdr() local
1022 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx(tfm); in create_aead_ctx_hdr()
1025 int mac_len = crypto_aead_authsize(tfm); in create_aead_ctx_hdr()
1040 memcpy(fctx->enc.encr_iv, req->iv, crypto_aead_ivsize(tfm)); in create_aead_ctx_hdr()
1112 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in create_hmac_ctx_hdr() local
1113 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx(tfm); in create_hmac_ctx_hdr()
1291 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cpt_aead_enc_dec() local
1292 struct otx2_cpt_aead_ctx *ctx = crypto_aead_ctx(tfm); in cpt_aead_enc_dec()
1311 create_aead_output_list(req, enc, crypto_aead_authsize(tfm)); in cpt_aead_enc_dec()
1316 crypto_aead_authsize(tfm)); in cpt_aead_enc_dec()
1318 crypto_aead_authsize(tfm)); in cpt_aead_enc_dec()