Searched refs:tfm (Results 251 - 275 of 470) sorted by relevance

<<111213141516171819

/linux-master/arch/riscv/crypto/
H A Dghash-riscv64-glue.c33 static int riscv64_ghash_setkey(struct crypto_shash *tfm, const u8 *key, argument
36 struct riscv64_ghash_tfm_ctx *tctx = crypto_shash_ctx(tfm);
79 const struct riscv64_ghash_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
115 const struct riscv64_ghash_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-aes-cmac.c27 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
29 unsigned int digest_size = crypto_ahash_digestsize(tfm);
58 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
59 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm);
63 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
256 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, argument
259 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm);
261 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm));
335 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) argument
337 struct ccp_ctx *ctx = crypto_tfm_ctx_dma(tfm);
[all...]
/linux-master/crypto/
H A Dalgif_hash.c233 struct crypto_ahash *tfm; local
241 tfm = crypto_ahash_reqtfm(req);
242 state = kmalloc(crypto_ahash_statesize(tfm), GFP_KERNEL);
303 struct crypto_ahash *tfm; local
313 tfm = pask->private;
317 if (crypto_ahash_get_flags(tfm) & CRYPTO_TFM_NEED_KEY)
414 struct crypto_ahash *tfm = private; local
417 unsigned int len = sizeof(*ctx) + crypto_ahash_reqsize(tfm);
430 ahash_request_set_tfm(&ctx->req, tfm);
441 struct crypto_ahash *tfm local
[all...]
H A Decrdsa.c73 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
74 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm);
191 static int ecrdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, argument
194 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm);
252 static unsigned int ecrdsa_max_size(struct crypto_akcipher *tfm) argument
254 struct ecrdsa_ctx *ctx = akcipher_tfm_ctx(tfm);
263 static void ecrdsa_exit_tfm(struct crypto_akcipher *tfm) argument
H A Daegis128-core.c378 static int crypto_aegis128_setauthsize(struct crypto_aead *tfm, argument
390 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
392 unsigned int authsize = crypto_aead_authsize(tfm);
393 struct aegis_ctx *ctx = crypto_aead_ctx(tfm);
413 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
415 unsigned int authsize = crypto_aead_authsize(tfm);
417 struct aegis_ctx *ctx = crypto_aead_ctx(tfm);
451 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
453 unsigned int authsize = crypto_aead_authsize(tfm);
454 struct aegis_ctx *ctx = crypto_aead_ctx(tfm);
476 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
[all...]
H A Dsm2.c380 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
381 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm);
420 static int sm2_set_pub_key(struct crypto_akcipher *tfm, argument
423 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm);
447 static unsigned int sm2_max_size(struct crypto_akcipher *tfm) argument
453 static int sm2_init_tfm(struct crypto_akcipher *tfm) argument
455 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm);
460 static void sm2_exit_tfm(struct crypto_akcipher *tfm) argument
462 struct mpi_ec_ctx *ec = akcipher_tfm_ctx(tfm);
H A Dinternal.h39 struct crypto_akcipher *tfm; member in struct:crypto_akcipher_sync_data
132 int crypto_init_akcipher_ops_sig(struct crypto_tfm *tfm);
214 static inline struct crypto_tfm *crypto_tfm_get(struct crypto_tfm *tfm) argument
216 return refcount_inc_not_zero(&tfm->refcnt) ? tfm : ERR_PTR(-EOVERFLOW);
/linux-master/drivers/crypto/aspeed/
H A Daspeed-hace-hash.c351 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
352 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm);
537 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
538 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm);
561 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
562 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm);
584 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
585 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm);
612 static int aspeed_sham_shash_digest(struct crypto_shash *tfm, u32 flags, argument
615 SHASH_DESC_ON_STACK(shash, tfm);
625 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
639 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
664 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
751 aspeed_sham_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
788 aspeed_sham_cra_init(struct crypto_tfm *tfm) argument
819 aspeed_sham_cra_exit(struct crypto_tfm *tfm) argument
[all...]
/linux-master/net/sunrpc/auth_gss/
H A Dgss_krb5_seal.c108 struct crypto_ahash *tfm = ctx->initiate ? local
127 if (gss_krb5_checksum(tfm, krb5_hdr, GSS_KRB5_TOK_HDR_LEN,
/linux-master/drivers/crypto/hisilicon/trng/
H A Dtrng.c83 static int hisi_trng_seed(struct crypto_rng *tfm, const u8 *seed, argument
86 struct hisi_trng_ctx *ctx = crypto_rng_ctx(tfm);
112 static int hisi_trng_generate(struct crypto_rng *tfm, const u8 *src, argument
115 struct hisi_trng_ctx *ctx = crypto_rng_ctx(tfm);
154 static int hisi_trng_init(struct crypto_tfm *tfm) argument
156 struct hisi_trng_ctx *ctx = crypto_tfm_ctx(tfm);
174 static void hisi_trng_exit(struct crypto_tfm *tfm) argument
176 struct hisi_trng_ctx *ctx = crypto_tfm_ctx(tfm);
/linux-master/drivers/crypto/chelsio/
H A Dchcr_crypto.h158 static inline struct chcr_context *a_ctx(struct crypto_aead *tfm) argument
160 return crypto_aead_ctx(tfm);
163 static inline struct chcr_context *c_ctx(struct crypto_skcipher *tfm) argument
165 return crypto_skcipher_ctx(tfm);
168 static inline struct chcr_context *h_ctx(struct crypto_ahash *tfm) argument
170 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
/linux-master/crypto/asymmetric_keys/
H A Dverify_pefile.c325 struct crypto_shash *tfm; local
336 tfm = crypto_alloc_shash(ctx->digest_algo, 0, 0);
337 if (IS_ERR(tfm))
338 return (PTR_ERR(tfm) == -ENOENT) ? -ENOPKG : PTR_ERR(tfm);
340 desc_size = crypto_shash_descsize(tfm) + sizeof(*desc);
341 digest_size = crypto_shash_digestsize(tfm);
356 desc->tfm = tfm;
385 crypto_free_shash(tfm);
[all...]
/linux-master/drivers/crypto/
H A Datmel-sha.c428 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
429 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm);
438 crypto_ahash_digestsize(tfm));
440 switch (crypto_ahash_digestsize(tfm)) {
1085 ctx = crypto_tfm_ctx(async_req->tfm);
1153 struct atmel_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
1243 static int atmel_sha_cra_init(struct crypto_tfm *tfm) argument
1245 struct atmel_sha_ctx *ctx = crypto_tfm_ctx(tfm);
1247 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
1687 struct crypto_ahash *tfm local
1748 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1765 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1785 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1801 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1849 atmel_sha_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
1872 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1889 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1948 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
2022 atmel_sha_hmac_cra_init(struct crypto_tfm *tfm) argument
2034 atmel_sha_hmac_cra_exit(struct crypto_tfm *tfm) argument
2108 struct crypto_ahash *tfm; member in struct:atmel_sha_authenc_ctx
2169 struct crypto_ahash *tfm; local
2235 struct crypto_ahash *tfm = auth->tfm; local
2250 struct crypto_ahash *tfm = auth->tfm; local
2282 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
2305 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
[all...]
H A Datmel-aes.c926 ctx = crypto_tfm_ctx(areq->tfm);
1107 static int atmel_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
1110 struct atmel_aes_base_ctx *ctx = crypto_skcipher_ctx(tfm);
1153 static int atmel_aes_init_tfm(struct crypto_skcipher *tfm) argument
1155 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
1162 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1169 static int atmel_aes_ctr_init_tfm(struct crypto_skcipher *tfm) argument
1171 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
1178 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1315 struct crypto_aead *tfm local
1352 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1503 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1543 atmel_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) argument
1559 atmel_aes_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
1575 atmel_aes_gcm_init(struct crypto_aead *tfm) argument
1677 atmel_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
1711 atmel_aes_xts_init_tfm(struct crypto_skcipher *tfm) argument
1734 atmel_aes_xts_exit_tfm(struct crypto_skcipher *tfm) argument
1784 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1879 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1903 atmel_aes_authenc_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) argument
1937 atmel_aes_authenc_init_tfm(struct crypto_aead *tfm, unsigned long auth_mode) argument
1960 atmel_aes_authenc_hmac_sha1_init_tfm(struct crypto_aead *tfm) argument
1965 atmel_aes_authenc_hmac_sha224_init_tfm(struct crypto_aead *tfm) argument
1970 atmel_aes_authenc_hmac_sha256_init_tfm(struct crypto_aead *tfm) argument
1975 atmel_aes_authenc_hmac_sha384_init_tfm(struct crypto_aead *tfm) argument
1980 atmel_aes_authenc_hmac_sha512_init_tfm(struct crypto_aead *tfm) argument
1985 atmel_aes_authenc_exit_tfm(struct crypto_aead *tfm) argument
1996 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
[all...]
H A Dqcom-rng.c85 static int qcom_rng_generate(struct crypto_rng *tfm, argument
89 struct qcom_rng_ctx *ctx = crypto_rng_ctx(tfm);
110 static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed, argument
152 static int qcom_rng_init(struct crypto_tfm *tfm) argument
154 struct qcom_rng_ctx *ctx = crypto_tfm_ctx(tfm);
/linux-master/drivers/crypto/nx/
H A Dnx.c694 /* entry points from the crypto tfm initializers */
695 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm) argument
697 crypto_aead_set_reqsize(tfm, sizeof(struct nx_ccm_rctx));
698 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES,
702 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) argument
704 crypto_aead_set_reqsize(tfm, sizeof(struct nx_gcm_rctx));
705 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES,
709 int nx_crypto_ctx_aes_ctr_init(struct crypto_skcipher *tfm) argument
711 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES,
715 int nx_crypto_ctx_aes_cbc_init(struct crypto_skcipher *tfm) argument
721 nx_crypto_ctx_aes_ecb_init(struct crypto_skcipher *tfm) argument
727 nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) argument
732 nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) argument
746 nx_crypto_ctx_exit(struct crypto_tfm *tfm) argument
757 nx_crypto_ctx_skcipher_exit(struct crypto_skcipher *tfm) argument
762 nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) argument
[all...]
/linux-master/drivers/crypto/qce/
H A Dskcipher.c173 struct crypto_tfm *tfm = crypto_skcipher_tfm(ablk); local
174 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm);
258 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
259 struct qce_cipher_ctx *ctx = crypto_skcipher_ctx(tfm);
261 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm);
262 unsigned int blocksize = crypto_skcipher_blocksize(tfm);
320 static int qce_skcipher_init(struct crypto_skcipher *tfm) argument
323 crypto_skcipher_set_reqsize(tfm, offsetof(struct qce_cipher_reqctx,
328 static int qce_skcipher_init_fallback(struct crypto_skcipher *tfm) argument
330 struct qce_cipher_ctx *ctx = crypto_skcipher_ctx(tfm);
342 qce_skcipher_exit(struct crypto_skcipher *tfm) argument
[all...]
/linux-master/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-hash.c18 int sun4i_hash_crainit(struct crypto_tfm *tfm) argument
20 struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm);
21 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg);
34 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
39 void sun4i_hash_craexit(struct crypto_tfm *tfm) argument
41 struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm);
50 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
51 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg);
193 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
194 struct ahash_alg *alg = __crypto_ahash_alg(tfm
[all...]
/linux-master/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c595 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local
596 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
718 static int hpre_dh_set_secret(struct crypto_kpp *tfm, const void *buf, argument
721 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
745 static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm) argument
747 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
752 static int hpre_dh_init_tfm(struct crypto_kpp *tfm) argument
754 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
756 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd());
761 static void hpre_dh_exit_tfm(struct crypto_kpp *tfm) argument
798 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
846 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
1134 hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
1147 hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
1160 hpre_rsa_max_size(struct crypto_akcipher *tfm) argument
1172 hpre_rsa_init_tfm(struct crypto_akcipher *tfm) argument
1193 hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) argument
1394 hpre_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, unsigned int len) argument
1589 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local
1630 hpre_ecdh_max_size(struct crypto_kpp *tfm) argument
1638 hpre_ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) argument
1649 hpre_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) argument
1660 hpre_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) argument
1671 hpre_ecdh_exit_tfm(struct crypto_kpp *tfm) argument
1733 hpre_curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, unsigned int len) argument
1941 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local
1983 hpre_curve25519_max_size(struct crypto_kpp *tfm) argument
1990 hpre_curve25519_init_tfm(struct crypto_kpp *tfm) argument
1999 hpre_curve25519_exit_tfm(struct crypto_kpp *tfm) argument
[all...]
/linux-master/arch/mips/crypto/
H A Dcrc32-mips.c168 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
181 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, argument
184 struct chksum_ctx *mctx = crypto_shash_ctx(tfm);
257 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
265 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
270 static int chksum_cra_init(struct crypto_tfm *tfm) argument
272 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm);
/linux-master/arch/powerpc/crypto/
H A Daes-gcm-p10-glue.c169 static int set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument
190 struct crypto_tfm *tfm = crypto_aead_tfm(aead); local
191 struct p10_aes_gcm_ctx *ctx = crypto_tfm_ctx(tfm);
203 struct crypto_tfm *tfm = req->base.tfm; local
204 struct p10_aes_gcm_ctx *ctx = crypto_tfm_ctx(tfm);
218 unsigned long auth_tag_len = crypto_aead_authsize(__crypto_aead_cast(tfm));
/linux-master/fs/ubifs/
H A Dauth.c72 hash_desc->tfm = c->hash_tfm;
90 struct crypto_shash *tfm)
98 desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL);
102 desc->tfm = tfm;
397 shash->tfm = c->hmac_tfm;
480 state = kmalloc(crypto_shash_descsize(src->tfm), GFP_NOFS);
89 ubifs_get_desc(const struct ubifs_info *c, struct crypto_shash *tfm) argument
/linux-master/drivers/crypto/stm32/
H A Dstm32-crc32.c72 static int stm32_crc32_cra_init(struct crypto_tfm *tfm) argument
74 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm);
81 static int stm32_crc32c_cra_init(struct crypto_tfm *tfm) argument
83 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm);
90 static int stm32_crc_setkey(struct crypto_shash *tfm, const u8 *key, argument
93 struct stm32_crc_ctx *mctx = crypto_shash_ctx(tfm);
118 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm);
151 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm);
245 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm);
/linux-master/arch/arm/crypto/
H A Dcrc32-ce-glue.c36 static int crc32_cra_init(struct crypto_tfm *tfm) argument
38 u32 *key = crypto_tfm_ctx(tfm);
44 static int crc32c_cra_init(struct crypto_tfm *tfm) argument
46 u32 *key = crypto_tfm_ctx(tfm);
65 u32 *mctx = crypto_shash_ctx(desc->tfm);
/linux-master/arch/x86/crypto/
H A Dcrc32c-intel_glue.c96 u32 *mctx = crypto_shash_ctx(desc->tfm);
137 return __crc32c_intel_finup(crypto_shash_ctx(desc->tfm), data, len,
141 static int crc32c_intel_cra_init(struct crypto_tfm *tfm) argument
143 u32 *key = crypto_tfm_ctx(tfm);
191 return __crc32c_pcl_intel_finup(crypto_shash_ctx(desc->tfm), data, len,

Completed in 237 milliseconds

<<111213141516171819