/linux-master/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.c | 87 struct crypto_aead *tfm; local 90 tfm = crypto_aead_reqtfm(req); 94 crypto_aead_authsize(tfm)) != 0) 411 static int otx2_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, argument 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, argument 446 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); 460 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 463 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); 491 otx2_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 497 otx2_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 503 otx2_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 509 otx2_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 535 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); local 562 otx2_cpt_skcipher_exit(struct crypto_skcipher *tfm) argument 593 struct crypto_tfm *tfm = crypto_aead_tfm(atfm); local 665 otx2_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm) argument 670 otx2_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm) argument 675 otx2_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm) argument 680 otx2_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm) argument 685 otx2_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm) argument 690 otx2_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm) argument 695 otx2_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm) argument 700 otx2_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm) argument 705 otx2_cpt_aead_gcm_aes_init(struct crypto_aead *tfm) argument 710 otx2_cpt_aead_exit(struct crypto_aead *tfm) argument 727 otx2_cpt_aead_gcm_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument 743 otx2_cpt_aead_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument 751 otx2_cpt_aead_null_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument 1045 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 1136 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 1315 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local [all...] |
/linux-master/drivers/block/zram/ |
H A D | zcomp.h | 11 /* The members ->buffer and ->tfm are protected by ->lock. */ 15 struct crypto_comp *tfm; member in struct:zcomp_strm
|
/linux-master/drivers/crypto/nx/ |
H A D | nx-842.h | 182 int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver); 183 void nx842_crypto_exit(struct crypto_tfm *tfm); 184 int nx842_crypto_compress(struct crypto_tfm *tfm, 187 int nx842_crypto_decompress(struct crypto_tfm *tfm,
|
/linux-master/crypto/ |
H A D | ecdsa.c | 139 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 140 struct ecc_ctx *ctx = akcipher_tfm_ctx(tfm); 222 static int ecdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument 224 struct ecc_ctx *ctx = akcipher_tfm_ctx(tfm); 258 static void ecdsa_exit_tfm(struct crypto_akcipher *tfm) argument 260 struct ecc_ctx *ctx = akcipher_tfm_ctx(tfm); 265 static unsigned int ecdsa_max_size(struct crypto_akcipher *tfm) argument 267 struct ecc_ctx *ctx = akcipher_tfm_ctx(tfm); 272 static int ecdsa_nist_p521_init_tfm(struct crypto_akcipher *tfm) argument 274 struct ecc_ctx *ctx = akcipher_tfm_ctx(tfm); 294 ecdsa_nist_p384_init_tfm(struct crypto_akcipher *tfm) argument 316 ecdsa_nist_p256_init_tfm(struct crypto_akcipher *tfm) argument 338 ecdsa_nist_p192_init_tfm(struct crypto_akcipher *tfm) argument [all...] |
H A D | dh.c | 42 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) argument 44 return kpp_tfm_ctx(tfm); 71 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, argument 74 struct dh_ctx *ctx = dh_get_ctx(tfm); 169 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local 170 struct dh_ctx *ctx = dh_get_ctx(tfm); 251 static unsigned int dh_max_size(struct crypto_kpp *tfm) argument 253 struct dh_ctx *ctx = dh_get_ctx(tfm); 258 static void dh_exit_tfm(struct crypto_kpp *tfm) argument 260 struct dh_ctx *ctx = dh_get_ctx(tfm); 306 dh_safe_prime_instance_ctx( struct crypto_kpp *tfm) argument 312 dh_safe_prime_init_tfm(struct crypto_kpp *tfm) argument 328 dh_safe_prime_exit_tfm(struct crypto_kpp *tfm) argument 457 dh_safe_prime_set_secret(struct crypto_kpp *tfm, const void *buffer, unsigned int len) argument 544 dh_safe_prime_max_size(struct crypto_kpp *tfm) argument [all...] |
H A D | testmgr.c | 844 /* Like setkey_f(tfm, key, ksize), but sometimes misalign the key */ 845 #define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \ 853 err = setkey_f((tfm), keyptr, (ksize)); \ 1275 struct crypto_shash *tfm = desc->tfm; local 1276 const unsigned int digestsize = crypto_shash_digestsize(tfm); 1277 const unsigned int statesize = crypto_shash_statesize(tfm); 1278 const char *driver = crypto_shash_driver_name(tfm); 1286 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, 1293 crypto_shash_get_flags(tfm)); 1458 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 1736 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 1864 struct crypto_shash *tfm; local 2031 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 2257 struct crypto_aead *tfm; member in struct:aead_extra_tests_ctx 2310 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 2380 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 2486 struct crypto_aead *tfm = ctx->tfm; local 2667 struct crypto_aead *tfm; local 2717 test_cipher(struct crypto_cipher *tfm, int enc, const struct cipher_testvec *template, unsigned int tcount) argument 2810 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 3023 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 3077 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 3244 struct crypto_skcipher *tfm; local 3294 test_comp(struct crypto_comp *tfm, const struct comp_testvec *ctemplate, const struct comp_testvec *dtemplate, int ctcount, int dtcount) argument 3400 test_acomp(struct crypto_acomp *tfm, const struct comp_testvec *ctemplate, const struct comp_testvec *dtemplate, int ctcount, int dtcount) argument 3598 test_cprng(struct crypto_rng *tfm, const struct cprng_testvec *template, unsigned int tcount) argument 3664 struct crypto_cipher *tfm; local 3723 struct crypto_shash *tfm; local 3887 do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec, const char *alg) argument 4029 test_kpp(struct crypto_kpp *tfm, const char *alg, const struct kpp_testvec *vecs, unsigned int tcount) argument 4048 struct crypto_kpp *tfm; local 4071 test_akcipher_one(struct crypto_akcipher *tfm, const struct akcipher_testvec *vecs) argument 4253 test_akcipher(struct crypto_akcipher *tfm, const char *alg, const struct akcipher_testvec *vecs, unsigned int tcount) argument 4276 struct crypto_akcipher *tfm; local [all...] |
H A D | hctr2.c | 111 SHASH_DESC_ON_STACK(shash, tfm->polyval); 115 shash->tfm = tctx->polyval; 129 static int hctr2_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 132 struct hctr2_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); 138 crypto_skcipher_get_flags(tfm) & 146 crypto_skcipher_get_flags(tfm) & 160 crypto_shash_set_flags(tctx->polyval, crypto_skcipher_get_flags(tfm) & 172 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 173 const struct hctr2_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); 179 hash_desc->tfm 231 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 267 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 334 hctr2_init_tfm(struct crypto_skcipher *tfm) argument 385 hctr2_exit_tfm(struct crypto_skcipher *tfm) argument [all...] |
/linux-master/net/ipv6/ |
H A D | seg6_hmac.c | 122 struct crypto_shash *tfm; local 130 tfm = *this_cpu_ptr(algo->tfms); 132 dgsize = crypto_shash_digestsize(tfm); 139 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); 146 shash->tfm = tfm; 356 struct crypto_shash *tfm; local 373 tfm = crypto_alloc_shash(algo->name, 0, 0); 374 if (IS_ERR(tfm)) { 375 ret = PTR_ERR(tfm); 422 struct crypto_shash *tfm; local [all...] |
/linux-master/drivers/crypto/ccp/ |
H A D | ccp-crypto-des3.c | 37 static int ccp_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 40 struct ccp_crypto_skcipher_alg *alg = ccp_crypto_skcipher_alg(tfm); 41 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); 44 err = verify_skcipher_des3_key(tfm, key); 63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 64 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); 116 static int ccp_des3_init_tfm(struct crypto_skcipher *tfm) argument 118 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); 123 crypto_skcipher_set_reqsize_dma(tfm, sizeof(struct ccp_des3_req_ctx));
|
H A D | ccp-crypto-sha.c | 30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 32 unsigned int digest_size = crypto_ahash_digestsize(tfm); 61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 62 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm); 66 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); 184 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 185 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm); 188 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); 190 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); 272 static int ccp_sha_setkey(struct crypto_ahash *tfm, cons argument 314 ccp_sha_cra_init(struct crypto_tfm *tfm) argument 327 ccp_sha_cra_exit(struct crypto_tfm *tfm) argument 331 ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) argument 349 ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) argument [all...] |
/linux-master/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss.h | 199 int sun4i_hash_crainit(struct crypto_tfm *tfm); 200 void sun4i_hash_craexit(struct crypto_tfm *tfm); 226 int sun4i_ss_cipher_init(struct crypto_tfm *tfm); 227 void sun4i_ss_cipher_exit(struct crypto_tfm *tfm); 228 int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, 230 int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, 232 int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, 234 int sun4i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src, 236 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
|
/linux-master/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 95 int sun8i_ss_hash_init_tfm(struct crypto_ahash *tfm) argument 97 struct sun8i_ss_hash_tfm_ctx *op = crypto_ahash_ctx(tfm); 98 struct ahash_alg *alg = crypto_ahash_alg(tfm); 106 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0, 113 crypto_ahash_set_statesize(tfm, 116 crypto_ahash_set_reqsize(tfm, 133 void sun8i_ss_hash_exit_tfm(struct crypto_ahash *tfm) argument 135 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); 147 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 148 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); 161 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 173 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 185 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 211 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 226 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 255 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 391 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local 476 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local [all...] |
/linux-master/arch/loongarch/crypto/ |
H A D | crc32-loongarch.c | 113 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); 125 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) argument 127 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); 197 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); 204 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); 209 static int chksum_cra_init(struct crypto_tfm *tfm) argument 211 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); 217 static int chksumc_cra_init(struct crypto_tfm *tfm) argument 219 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm);
|
/linux-master/drivers/crypto/tegra/ |
H A D | tegra-se-hash.c | 115 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 116 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); 128 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 129 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); 143 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 144 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); 157 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 158 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); 174 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 175 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); 191 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 204 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 376 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 412 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 432 tegra_sha_init_fallback(struct crypto_ahash *tfm, struct tegra_sha_ctx *ctx, const char *algname) argument 458 tegra_sha_cra_init(struct crypto_tfm *tfm) argument 490 tegra_sha_cra_exit(struct crypto_tfm *tfm) argument 503 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 558 tegra_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument 574 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 588 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 602 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 616 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 631 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 645 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local [all...] |
/linux-master/arch/powerpc/crypto/ |
H A D | aes-spe-glue.c | 92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 95 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); 119 static int ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, argument 122 return ppc_aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len); 125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 128 struct ppc_xts_ctx *ctx = crypto_skcipher_ctx(tfm); 131 err = xts_verify_key(tfm, in_key, key_len); 162 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 164 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); 171 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u argument 182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 262 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 322 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 360 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local [all...] |
/linux-master/arch/riscv/crypto/ |
H A D | aes-riscv64-glue.c | 89 static int riscv64_aes_setkey_cipher(struct crypto_tfm *tfm, argument 92 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 97 static int riscv64_aes_setkey_skcipher(struct crypto_skcipher *tfm, argument 100 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); 107 static void riscv64_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 109 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 120 static void riscv64_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 122 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 137 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 138 const struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); 175 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 215 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 279 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 344 riscv64_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument 356 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local [all...] |
/linux-master/drivers/crypto/caam/ |
H A D | caampkc.c | 65 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 66 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); 77 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 78 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); 89 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 90 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); 106 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 107 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); 156 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 158 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); 252 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 379 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 407 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 453 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 500 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 577 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 673 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 716 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 755 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 784 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 813 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 842 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 943 caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument 1048 caam_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument 1100 caam_rsa_max_size(struct crypto_akcipher *tfm) argument 1108 caam_rsa_init_tfm(struct crypto_akcipher *tfm) argument 1134 caam_rsa_exit_tfm(struct crypto_akcipher *tfm) argument [all...] |
/linux-master/drivers/crypto/ccree/ |
H A D | cc_cipher.c | 64 static inline enum cc_key_type cc_key_type(struct crypto_tfm *tfm) argument 66 struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); 154 static int cc_cipher_init(struct crypto_tfm *tfm) argument 156 struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); 158 container_of(tfm->__crt_alg, struct cc_crypto_alg, 165 crypto_tfm_alg_name(tfm)); 172 const char *name = crypto_tfm_alg_name(tfm); 174 /* Alloc hash tfm for essiv */ 177 dev_err(dev, "Error allocating hash tfm for ESSIV.\n"); 182 /* Alloc fallabck tfm o 232 cc_cipher_exit(struct crypto_tfm *tfm) argument 304 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); local 404 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); local 510 cc_setup_readiv_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, struct cc_hw_desc desc[], unsigned int *seq_size) argument 566 cc_setup_state_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument 610 cc_setup_xex_state_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument 688 cc_setup_key_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument 770 cc_setup_mlli_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, void *areq, struct cc_hw_desc desc[], unsigned int *seq_size) argument 797 cc_setup_flow_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument 881 struct crypto_tfm *tfm = crypto_skcipher_tfm(sk_tfm); local [all...] |
/linux-master/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_skcipher.c | 25 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); 30 unsigned int bs = crypto_skcipher_blocksize(tfm); 70 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local 71 struct rk_cipher_ctx *op = crypto_skcipher_ctx(tfm); 73 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); 111 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); local 112 struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm); 255 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); local 260 block = crypto_tfm_alg_blocksize(tfm); 302 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local 434 rk_cipher_tfm_init(struct crypto_skcipher *tfm) argument 454 rk_cipher_tfm_exit(struct crypto_skcipher *tfm) argument [all...] |
/linux-master/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 102 struct crypto_aead *tfm; local 105 tfm = crypto_aead_reqtfm(req); 109 crypto_aead_authsize(tfm)) != 0) 238 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); local 239 struct otx_cpt_enc_ctx *ctx = crypto_tfm_ctx(tfm); 393 static int otx_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, argument 396 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); 401 ret = xts_verify_key(tfm, key, keylen); 422 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 425 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); 438 cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) argument 464 otx_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 470 otx_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 476 otx_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 482 otx_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument 488 otx_cpt_enc_dec_init(struct crypto_skcipher *tfm) argument 505 cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) argument 554 otx_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm) argument 559 otx_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm) argument 564 otx_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm) argument 569 otx_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm) argument 574 otx_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm) argument 579 otx_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm) argument 584 otx_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm) argument 589 otx_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm) argument 594 otx_cpt_aead_gcm_aes_init(struct crypto_aead *tfm) argument 599 otx_cpt_aead_exit(struct crypto_aead *tfm) argument 614 otx_cpt_aead_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument 964 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 1049 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 1217 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local [all...] |
/linux-master/net/ceph/ |
H A D | crypto.c | 20 * Set ->key and ->tfm. The rest of the key should be filled in before 29 key->tfm = NULL; 51 key->tfm = crypto_alloc_sync_skcipher("cbc(aes)", 0, 0); 53 if (IS_ERR(key->tfm)) { 54 ret = PTR_ERR(key->tfm); 55 key->tfm = NULL; 59 ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len); 140 if (key->tfm) { 141 crypto_free_sync_skcipher(key->tfm); 142 key->tfm [all...] |
/linux-master/arch/s390/crypto/ |
H A D | paes_s390.c | 160 static int ecb_paes_init(struct crypto_skcipher *tfm) argument 162 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); 170 static void ecb_paes_exit(struct crypto_skcipher *tfm) argument 172 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); 197 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument 201 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); 213 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 214 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); 275 static int cbc_paes_init(struct crypto_skcipher *tfm) argument 277 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm); 285 cbc_paes_exit(struct crypto_skcipher *tfm) argument 312 cbc_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument 328 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 395 xts_paes_init(struct crypto_skcipher *tfm) argument 406 xts_paes_exit(struct crypto_skcipher *tfm) argument 454 xts_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int xts_key_len) argument 494 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 575 ctr_paes_init(struct crypto_skcipher *tfm) argument 585 ctr_paes_exit(struct crypto_skcipher *tfm) argument 613 ctr_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument 644 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local [all...] |
/linux-master/drivers/crypto/starfive/ |
H A D | jh7110-rsa.c | 284 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 285 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); 294 akcipher_request_set_tfm(req, tfm); 316 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local 317 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); 326 akcipher_request_set_tfm(req, tfm); 448 static int starfive_rsa_setkey(struct crypto_akcipher *tfm, const void *key, argument 451 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); 499 static int starfive_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, argument 502 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); 512 starfive_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument 525 starfive_rsa_max_size(struct crypto_akcipher *tfm) argument 535 starfive_rsa_init_tfm(struct crypto_akcipher *tfm) argument 553 starfive_rsa_exit_tfm(struct crypto_akcipher *tfm) argument [all...] |
/linux-master/arch/arm/crypto/ |
H A D | ghash-ce-glue.c | 120 struct ghash_key *key = crypto_shash_ctx(desc->tfm); 150 struct ghash_key *key = crypto_shash_ctx(desc->tfm); 173 static int ghash_setkey(struct crypto_shash *tfm, argument 176 struct ghash_key *key = crypto_shash_ctx(tfm); 218 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 219 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); 225 desc->tfm = child; 232 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 233 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); 250 struct crypto_ahash *tfm local 267 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 289 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 306 ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument 318 ghash_async_init_tfm(struct crypto_tfm *tfm) argument 334 ghash_async_exit_tfm(struct crypto_tfm *tfm) argument 382 gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, unsigned int keylen) argument 416 gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument 673 rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey, unsigned int keylen) argument 688 rfc4106_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument [all...] |
/linux-master/fs/crypto/ |
H A D | keysetup_v1.c | 55 struct crypto_skcipher *tfm = crypto_alloc_skcipher("ecb(aes)", 0, 0); local 57 if (IS_ERR(tfm)) { 58 res = PTR_ERR(tfm); 59 tfm = NULL; 62 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS); 63 req = skcipher_request_alloc(tfm, GFP_KERNEL); 71 res = crypto_skcipher_setkey(tfm, nonce, FSCRYPT_FILE_NONCE_SIZE); 82 crypto_free_skcipher(tfm); 208 /* using existing tfm with same (descriptor, mode, raw_key) */ 227 /* Is there already a tfm fo [all...] |