Home
last modified time | relevance | path

Searched defs:tfm (Results 76 – 100 of 390) sorted by relevance

12345678910>>...16

/openbmc/linux/drivers/crypto/nx/
H A Dnx-aes-ctr.c22 static int ctr_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr_aes_nx_set_key()
54 static int ctr3686_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr3686_aes_nx_set_key()
74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_aes_nx_crypt() local
117 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr3686_aes_nx_crypt() local
H A Dnx.c695 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_ccm_init()
702 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_gcm_init()
709 int nx_crypto_ctx_aes_ctr_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_ctr_init()
715 int nx_crypto_ctx_aes_cbc_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_cbc_init()
721 int nx_crypto_ctx_aes_ecb_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_ecb_init()
727 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init()
732 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init()
746 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit()
757 void nx_crypto_ctx_skcipher_exit(struct crypto_skcipher *tfm) in nx_crypto_ctx_skcipher_exit()
762 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) in nx_crypto_ctx_aead_exit()
/openbmc/linux/crypto/
H A Djitterentropy-kcapi.c186 struct crypto_shash *tfm; member
190 static void jent_kcapi_cleanup(struct crypto_tfm *tfm) in jent_kcapi_cleanup()
212 static int jent_kcapi_init(struct crypto_tfm *tfm) in jent_kcapi_init()
262 static int jent_kcapi_random(struct crypto_rng *tfm, in jent_kcapi_random()
300 static int jent_kcapi_reset(struct crypto_rng *tfm, in jent_kcapi_reset()
324 struct crypto_shash *tfm; in jent_mod_init() local
H A Dakcipher.c44 static void crypto_akcipher_exit_tfm(struct crypto_tfm *tfm) in crypto_akcipher_exit_tfm()
52 static int crypto_akcipher_init_tfm(struct crypto_tfm *tfm) in crypto_akcipher_init_tfm()
150 static int akcipher_default_set_key(struct crypto_akcipher *tfm, in akcipher_default_set_key()
245 int crypto_akcipher_sync_encrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_encrypt()
263 int crypto_akcipher_sync_decrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_decrypt()
282 static void crypto_exit_akcipher_ops_sig(struct crypto_tfm *tfm) in crypto_exit_akcipher_ops_sig()
289 int crypto_init_akcipher_ops_sig(struct crypto_tfm *tfm) in crypto_init_akcipher_ops_sig()
H A Ddh.c42 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) in dh_get_ctx()
71 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, in dh_set_secret()
168 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() local
250 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size()
257 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm()
306 struct crypto_kpp *tfm) in dh_safe_prime_instance_ctx()
311 static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm) in dh_safe_prime_init_tfm()
327 static void dh_safe_prime_exit_tfm(struct crypto_kpp *tfm) in dh_safe_prime_exit_tfm()
456 static int dh_safe_prime_set_secret(struct crypto_kpp *tfm, const void *buffer, in dh_safe_prime_set_secret()
543 static unsigned int dh_safe_prime_max_size(struct crypto_kpp *tfm) in dh_safe_prime_max_size()
H A Dskcipher.c470 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_skcipher() local
526 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_common() local
577 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_decrypt() local
585 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey()
591 static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm, in skcipher_setkey_unaligned()
639 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_encrypt() local
661 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_decrypt() local
681 static void crypto_skcipher_exit_tfm(struct crypto_tfm *tfm) in crypto_skcipher_exit_tfm()
689 static int crypto_skcipher_init_tfm(struct crypto_tfm *tfm) in crypto_skcipher_init_tfm()
810 struct crypto_skcipher *tfm; in crypto_alloc_sync_skcipher() local
[all …]
H A Dctr.c29 struct crypto_cipher *tfm) in crypto_ctr_crypt_final()
47 struct crypto_cipher *tfm) in crypto_ctr_crypt_segment()
73 struct crypto_cipher *tfm) in crypto_ctr_crypt_inplace()
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_ctr_crypt() local
192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt() local
218 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm()
242 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
H A Dansi_cprng.c47 struct crypto_cipher *tfm; member
320 static int cprng_init(struct crypto_tfm *tfm) in cprng_init()
344 static void cprng_exit(struct crypto_tfm *tfm) in cprng_exit()
349 static int cprng_get_random(struct crypto_rng *tfm, in cprng_get_random()
364 static int cprng_reset(struct crypto_rng *tfm, in cprng_reset()
385 static int fips_cprng_get_random(struct crypto_rng *tfm, in fips_cprng_get_random()
394 static int fips_cprng_reset(struct crypto_rng *tfm, in fips_cprng_reset()
H A Dcts.c68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_reqctx_space() local
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() local
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt() local
182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() local
239 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_decrypt() local
283 static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) in crypto_cts_init_tfm()
311 static void crypto_cts_exit_tfm(struct crypto_skcipher *tfm) in crypto_cts_exit_tfm()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-prng.c19 int sun8i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun8i_ss_prng_seed()
40 int sun8i_ss_prng_init(struct crypto_tfm *tfm) in sun8i_ss_prng_init()
48 void sun8i_ss_prng_exit(struct crypto_tfm *tfm) in sun8i_ss_prng_exit()
57 int sun8i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src, in sun8i_ss_prng_generate()
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete() local
61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update() local
184 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init() local
272 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey()
314 static int ccp_sha_cra_init(struct crypto_tfm *tfm) in ccp_sha_cra_init()
327 static void ccp_sha_cra_exit(struct crypto_tfm *tfm) in ccp_sha_cra_exit()
331 static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_init()
349 static void ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_exit()
H A Dccp-crypto-aes-galois.c29 static int ccp_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, in ccp_aes_gcm_setkey()
57 static int ccp_aes_gcm_setauthsize(struct crypto_aead *tfm, in ccp_aes_gcm_setauthsize()
78 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in ccp_aes_gcm_crypt() local
149 static int ccp_aes_gcm_cra_init(struct crypto_aead *tfm) in ccp_aes_gcm_cra_init()
161 static void ccp_aes_gcm_cra_exit(struct crypto_tfm *tfm) in ccp_aes_gcm_cra_exit()
/openbmc/linux/arch/x86/crypto/
H A Dghash-clmulni-intel_glue.c54 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
181 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
213 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
253 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
272 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
284 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm()
302 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-prng.c17 int sun8i_ce_prng_init(struct crypto_tfm *tfm) in sun8i_ce_prng_init()
25 void sun8i_ce_prng_exit(struct crypto_tfm *tfm) in sun8i_ce_prng_exit()
34 int sun8i_ce_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun8i_ce_prng_seed()
55 int sun8i_ce_prng_generate(struct crypto_rng *tfm, const u8 *src, in sun8i_ce_prng_generate()
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_algo.c174 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_verify_tag() local
214 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_handle_aead_resp() local
364 static inline int is_hmac(struct crypto_tfm *tfm) in is_hmac()
713 struct crypto_tfm *tfm = req->tfm; in get_qidxs() local
2145 struct crypto_tfm *tfm = req->tfm; in chcr_handle_resp() local
2367 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_aead_common_exit() local
2375 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_aead_common_init() local
2419 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_aead_fallback() local
2437 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in create_authenc_wr() local
2581 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_aead_dma_map() local
[all …]
/openbmc/linux/net/bluetooth/
H A Decdh_helper.c44 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64], in compute_ecdh_secret()
101 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]) in set_ecdh_privkey()
145 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_public_key()
194 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_keys()
/openbmc/linux/arch/arm64/crypto/
H A Daes-neonbs-glue.c74 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey()
98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local
133 static int aesbs_cbc_ctr_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_ctr_setkey()
158 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
209 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() local
251 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey()
280 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt() local
/openbmc/linux/drivers/crypto/vmx/
H A Daes_cbc.c24 static int p8_aes_cbc_init(struct crypto_skcipher *tfm) in p8_aes_cbc_init()
44 static void p8_aes_cbc_exit(struct crypto_skcipher *tfm) in p8_aes_cbc_exit()
51 static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_cbc_setkey()
73 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_cbc_crypt() local
H A Daes_ctr.c23 static int p8_aes_ctr_init(struct crypto_skcipher *tfm) in p8_aes_ctr_init()
43 static void p8_aes_ctr_exit(struct crypto_skcipher *tfm) in p8_aes_ctr_exit()
50 static int p8_aes_ctr_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_ctr_setkey()
92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_ctr_crypt() local
H A Daes_xts.c26 static int p8_aes_xts_init(struct crypto_skcipher *tfm) in p8_aes_xts_init()
46 static void p8_aes_xts_exit(struct crypto_skcipher *tfm) in p8_aes_xts_exit()
53 static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_xts_setkey()
80 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_xts_crypt() local
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_algs.c786 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_dec() local
832 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_enc() local
938 static int qat_alg_skcipher_setkey(struct crypto_skcipher *tfm, in qat_alg_skcipher_setkey()
1020 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in qat_alg_skcipher_encrypt() local
1087 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in qat_alg_skcipher_decrypt() local
1152 static int qat_alg_aead_init(struct crypto_aead *tfm, in qat_alg_aead_init()
1166 static int qat_alg_aead_sha1_init(struct crypto_aead *tfm) in qat_alg_aead_sha1_init()
1171 static int qat_alg_aead_sha256_init(struct crypto_aead *tfm) in qat_alg_aead_sha256_init()
1176 static int qat_alg_aead_sha512_init(struct crypto_aead *tfm) in qat_alg_aead_sha512_init()
1181 static void qat_alg_aead_exit(struct crypto_aead *tfm) in qat_alg_aead_exit()
[all …]
/openbmc/linux/arch/arm/crypto/
H A Dghash-ce-glue.c173 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
218 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
232 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local
267 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local
289 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_import() local
306 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
318 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm()
334 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm()
382 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, in gcm_aes_setkey()
[all …]
/openbmc/linux/drivers/crypto/
H A Datmel-ecc.c77 static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in atmel_ecdh_set_secret()
139 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_generate_public_key() local
167 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_compute_shared_secret() local
247 static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm) in atmel_ecdh_init_tfm()
273 static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm) in atmel_ecdh_exit_tfm()
282 static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm) in atmel_ecdh_max_size()
/openbmc/linux/net/mac80211/
H A Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt()
50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt()
89 struct crypto_aead *tfm; in aead_key_setup_encrypt() local
110 void aead_key_free(struct crypto_aead *tfm) in aead_key_free()
/openbmc/linux/drivers/crypto/aspeed/
H A Daspeed-hace-hash.c351 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_ahash_hmac_resume() local
537 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_ahash_do_request() local
561 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_ahash_prepare_request() local
584 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_update() local
612 static int aspeed_sham_shash_digest(struct crypto_shash *tfm, u32 flags, in aspeed_sham_shash_digest()
625 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_final() local
639 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_finup() local
664 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_init() local
751 static int aspeed_sham_setkey(struct crypto_ahash *tfm, const u8 *key, in aspeed_sham_setkey()
788 static int aspeed_sham_cra_init(struct crypto_tfm *tfm) in aspeed_sham_cra_init()
[all …]

12345678910>>...16