Searched refs:tfm (Results 226 - 250 of 470) sorted by relevance

1234567891011>>

/linux-master/drivers/crypto/
H A Dimg-hash.c489 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
491 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
554 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
555 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
569 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
570 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
583 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
584 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
599 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
600 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
612 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
624 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
678 img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name) argument
696 img_hash_cra_md5_init(struct crypto_tfm *tfm) argument
701 img_hash_cra_sha1_init(struct crypto_tfm *tfm) argument
706 img_hash_cra_sha224_init(struct crypto_tfm *tfm) argument
711 img_hash_cra_sha256_init(struct crypto_tfm *tfm) argument
716 img_hash_cra_exit(struct crypto_tfm *tfm) argument
[all...]
H A Dn2_core.c262 static inline struct n2_ahash_alg *n2_ahash_alg(struct crypto_tfm *tfm) argument
264 struct crypto_alg *alg = tfm->__crt_alg;
277 static inline struct n2_hmac_alg *n2_hmac_alg(struct crypto_tfm *tfm) argument
279 struct crypto_alg *alg = tfm->__crt_alg;
315 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
316 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm);
327 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
328 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm);
341 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
342 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm);
354 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
376 n2_hash_cra_init(struct crypto_tfm *tfm) argument
403 n2_hash_cra_exit(struct crypto_tfm *tfm) argument
411 n2_hmac_cra_init(struct crypto_tfm *tfm) argument
452 n2_hmac_cra_exit(struct crypto_tfm *tfm) argument
461 n2_hmac_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
525 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
631 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
716 n2_skcipher_alg(struct crypto_skcipher *tfm) argument
730 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); local
758 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); local
777 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); local
948 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1000 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1300 n2_skcipher_init_tfm(struct crypto_skcipher *tfm) argument
[all...]
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-main.c48 /* For any tfm, requests for that tfm must be returned on the order
51 * the proper ordering of requests on a given tfm.
75 struct crypto_tfm *tfm; member in struct:ccp_crypto_cmd
100 * searching for a cmd with a matching tfm for submission.
104 if (crypto_cmd->tfm != tmp->tfm)
142 struct ccp_ctx *ctx = crypto_tfm_ctx_dma(req->tfm);
157 * a matching tfm) that can be submitted to the CCP.
186 ctx = crypto_tfm_ctx_dma(held->req->tfm);
[all...]
/linux-master/crypto/
H A Dlrw.c143 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
144 const struct lrw_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
155 skcipher_request_set_tfm(req, tfm);
265 static int lrw_init_tfm(struct crypto_skcipher *tfm) argument
267 struct skcipher_instance *inst = skcipher_alg_instance(tfm);
269 struct lrw_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
278 crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(cipher) +
284 static void lrw_exit_tfm(struct crypto_skcipher *tfm) argument
286 struct lrw_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
H A Ddrbg.c1643 static void drbg_kcapi_set_entropy(struct crypto_rng *tfm, argument
1646 struct drbg_state *drbg = crypto_rng_ctx(tfm);
1666 struct crypto_shash *tfm; local
1668 tfm = crypto_alloc_shash(drbg->core->backend_cra_name, 0, 0);
1669 if (IS_ERR(tfm)) {
1672 return PTR_ERR(tfm);
1674 BUG_ON(drbg_blocklen(drbg) != crypto_shash_digestsize(tfm));
1675 sdesc = kzalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm),
1678 crypto_free_shash(tfm);
1682 sdesc->shash.tfm
1723 struct crypto_cipher *tfm = local
1745 struct crypto_cipher *tfm; local
1805 struct crypto_cipher *tfm = drbg->priv_data; local
1813 struct crypto_cipher *tfm = drbg->priv_data; local
1909 drbg_kcapi_init(struct crypto_tfm *tfm) argument
1918 drbg_kcapi_cleanup(struct crypto_tfm *tfm) argument
1932 drbg_kcapi_random(struct crypto_rng *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int dlen) argument
1952 drbg_kcapi_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) argument
[all...]
H A Dccm.c109 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, argument
393 static int crypto_ccm_init_tfm(struct crypto_aead *tfm) argument
395 struct aead_instance *inst = aead_alg_instance(tfm);
397 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm);
415 align = crypto_aead_alignmask(tfm);
418 tfm,
429 static void crypto_ccm_exit_tfm(struct crypto_aead *tfm) argument
431 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm);
666 static int crypto_rfc4309_init_tfm(struct crypto_aead *tfm) argument
668 struct aead_instance *inst = aead_alg_instance(tfm);
691 crypto_rfc4309_exit_tfm(struct crypto_aead *tfm) argument
801 struct crypto_cipher *tfm = tctx->child; local
826 struct crypto_cipher *tfm = tctx->child; local
836 cbcmac_init_tfm(struct crypto_tfm *tfm) argument
852 cbcmac_exit_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Dchacha_generic.c42 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
43 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
50 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
51 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
H A Dkeywrap.c54 * unsigned int datalen = ptlen + crypto_skcipher_ivsize(tfm);
57 * u8 *pt = data + crypto_skcipher_ivsize(tfm);
71 * u8 *ct = data + crypto_skcipher_ivsize(tfm);
72 * unsigned int ctlen = datalen - crypto_skcipher_ivsize(tfm);
126 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
127 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm);
195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
196 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm);
H A Dtwofish_generic.c95 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
97 struct twofish_ctx *ctx = crypto_tfm_ctx(tfm);
130 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
132 struct twofish_ctx *ctx = crypto_tfm_ctx(tfm);
H A Dblowfish_generic.c37 static void bf_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
39 struct bf_ctx *ctx = crypto_tfm_ctx(tfm);
69 static void bf_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
71 struct bf_ctx *ctx = crypto_tfm_ctx(tfm);
H A Dkpp.c40 static void crypto_kpp_exit_tfm(struct crypto_tfm *tfm) argument
42 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm);
48 static int crypto_kpp_init_tfm(struct crypto_tfm *tfm) argument
50 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm);
H A Dtcrypt.c57 #define get_driver_name(tfm_type, tfm) crypto_tfm_alg_driver_name(tfm_type ## _tfm(tfm))
249 struct crypto_aead *tfm; local
277 tfm = crypto_alloc_aead(algo, 0, 0);
278 if (IS_ERR(tfm)) {
280 algo, PTR_ERR(tfm));
284 ret = crypto_aead_setauthsize(tfm, authsize);
313 data[i].req = aead_request_alloc(tfm, GFP_KERNEL);
331 get_driver_name(crypto_aead, tfm), e);
337 int bs = round_up(*b_size, crypto_aead_blocksize(tfm));
524 struct crypto_aead *tfm; local
872 struct crypto_ahash *tfm; local
1065 struct crypto_skcipher *tfm; local
1302 struct crypto_skcipher *tfm; local
[all...]
/linux-master/arch/s390/crypto/
H A Dsha_common.c19 unsigned int bsize = crypto_shash_blocksize(desc->tfm);
75 unsigned int bsize = crypto_shash_blocksize(desc->tfm);
115 memcpy(out, ctx->state, crypto_shash_digestsize(desc->tfm));
H A Dghash_s390.c33 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm);
41 static int ghash_setkey(struct crypto_shash *tfm, argument
44 struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
/linux-master/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c108 static int nitrox_skcipher_init(struct crypto_skcipher *tfm) argument
110 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm);
129 crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(tfm) +
134 static int nitrox_cbc_init(struct crypto_skcipher *tfm) argument
137 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm);
139 err = nitrox_skcipher_init(tfm);
147 static void nitrox_skcipher_exit(struct crypto_skcipher *tfm) argument
149 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm);
169 struct crypto_tfm *tfm local
[all...]
/linux-master/include/crypto/
H A Daes.h51 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
/linux-master/arch/mips/crypto/
H A Dchacha-glue.c56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
57 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
65 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
/linux-master/arch/powerpc/crypto/
H A Dcrc32c-vpmsum_glue.c57 static int crc32c_vpmsum_cra_init(struct crypto_tfm *tfm) argument
59 u32 *key = crypto_tfm_ctx(tfm);
84 u32 *mctx = crypto_shash_ctx(desc->tfm);
128 return __crc32c_vpmsum_finup(crypto_shash_ctx(desc->tfm), data, len,
H A Dghash.c55 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, argument
58 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(tfm));
121 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm));
156 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm));
/linux-master/net/ceph/
H A Dcrypto.h19 struct crypto_sync_skcipher *tfm; member in struct:ceph_crypto_key
/linux-master/arch/x86/crypto/
H A Dcrc32-pclmul_glue.c83 static int crc32_pclmul_cra_init(struct crypto_tfm *tfm) argument
85 u32 *key = crypto_tfm_ctx(tfm);
105 u32 *mctx = crypto_shash_ctx(desc->tfm);
147 return __crc32_pclmul_finup(crypto_shash_ctx(desc->tfm), data, len,
/linux-master/arch/arm64/crypto/
H A Dpolyval-ce-glue.c72 static int polyval_arm64_setkey(struct crypto_shash *tfm, argument
75 struct polyval_tfm_ctx *tctx = crypto_shash_ctx(tfm);
105 const struct polyval_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
146 const struct polyval_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
/linux-master/drivers/crypto/qce/
H A Dsha.c42 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm);
79 struct qce_sha_ctx *ctx = crypto_tfm_ctx(async_req->tfm);
80 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm);
136 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm);
185 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
187 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm);
195 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
279 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm);
306 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm);
329 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, cons argument
393 qce_ahash_cra_init(struct crypto_tfm *tfm) argument
[all...]
/linux-master/drivers/crypto/aspeed/
H A Daspeed-acry.c485 static int aspeed_acry_rsa_setkey(struct crypto_akcipher *tfm, const void *key, argument
488 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm);
532 static int aspeed_acry_rsa_set_pub_key(struct crypto_akcipher *tfm, argument
536 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm);
543 return aspeed_acry_rsa_setkey(tfm, key, keylen, 0);
546 static int aspeed_acry_rsa_set_priv_key(struct crypto_akcipher *tfm, argument
550 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm);
557 return aspeed_acry_rsa_setkey(tfm, key, keylen, 1);
560 static unsigned int aspeed_acry_rsa_max_size(struct crypto_akcipher *tfm) argument
562 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm);
570 aspeed_acry_rsa_init_tfm(struct crypto_akcipher *tfm) argument
592 aspeed_acry_rsa_exit_tfm(struct crypto_akcipher *tfm) argument
[all...]
/linux-master/arch/sparc/crypto/
H A Dcrc32c_glue.c45 u32 *mctx = crypto_shash_ctx(desc->tfm);
110 return __crc32c_sparc64_finup(crypto_shash_ctx(desc->tfm), data, len,
114 static int crc32c_sparc64_cra_init(struct crypto_tfm *tfm) argument
116 u32 *key = crypto_tfm_ctx(tfm);

Completed in 375 milliseconds

1234567891011>>