Home
last modified time | relevance | path

Searched defs:tfm (Results 126 – 150 of 365) sorted by relevance

12345678910>>...15

/OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/
H A Dqat_asym_algs.c207 static inline struct qat_dh_ctx *qat_dh_get_params(struct crypto_kpp *tfm) in qat_dh_get_params()
214 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_compute_value() local
443 static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in qat_dh_set_secret()
477 static unsigned int qat_dh_max_size(struct crypto_kpp *tfm) in qat_dh_max_size()
484 static int qat_dh_init_tfm(struct crypto_kpp *tfm) in qat_dh_init_tfm()
499 static void qat_dh_exit_tfm(struct crypto_kpp *tfm) in qat_dh_exit_tfm()
643 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc() local
777 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec() local
1156 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey()
1203 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey()
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Dcbc.c26 struct crypto_tfm *tfm; in crypto_cbc_encrypt_segment() local
53 struct crypto_tfm *tfm; in crypto_cbc_encrypt_inplace() local
101 struct crypto_tfm *tfm; in crypto_cbc_decrypt_segment() local
131 struct crypto_tfm *tfm; in crypto_cbc_decrypt_inplace() local
H A Dadiantum.c117 static int adiantum_setkey(struct crypto_skcipher *tfm, const u8 *key, in adiantum_setkey()
221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in adiantum_hash_header() local
250 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in adiantum_hash_message() local
284 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in adiantum_finish() local
324 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in adiantum_crypt() local
397 static int adiantum_init_tfm(struct crypto_skcipher *tfm) in adiantum_init_tfm()
449 static void adiantum_exit_tfm(struct crypto_skcipher *tfm) in adiantum_exit_tfm()
H A Dfips140-alg-registration.c134 static int fips140_alg_init_tfm(struct crypto_tfm *tfm) in fips140_alg_init_tfm()
145 static int fips140_aead_init_tfm(struct crypto_aead *tfm) in fips140_aead_init_tfm()
156 static int fips140_ahash_init_tfm(struct crypto_ahash *tfm) in fips140_ahash_init_tfm()
168 static int fips140_shash_init_tfm(struct crypto_shash *tfm) in fips140_shash_init_tfm()
179 static int fips140_skcipher_init_tfm(struct crypto_skcipher *tfm) in fips140_skcipher_init_tfm()
H A Dsm2.c261 int sm2_compute_z_digest(struct crypto_akcipher *tfm, in sm2_compute_z_digest()
350 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in sm2_verify() local
390 static int sm2_set_pub_key(struct crypto_akcipher *tfm, in sm2_set_pub_key()
409 static unsigned int sm2_max_size(struct crypto_akcipher *tfm) in sm2_max_size()
415 static int sm2_init_tfm(struct crypto_akcipher *tfm) in sm2_init_tfm()
422 static void sm2_exit_tfm(struct crypto_akcipher *tfm) in sm2_exit_tfm()
H A Dcmac.c125 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update() local
171 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final() local
201 static int cmac_init_tfm(struct crypto_tfm *tfm) in cmac_init_tfm()
217 static void cmac_exit_tfm(struct crypto_tfm *tfm) in cmac_exit_tfm()
H A Dxcbc.c92 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update() local
138 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final() local
167 static int xcbc_init_tfm(struct crypto_tfm *tfm) in xcbc_init_tfm()
183 static void xcbc_exit_tfm(struct crypto_tfm *tfm) in xcbc_exit_tfm()
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A Dtwofish_avx_glue.c37 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, in twofish_setkey_skcipher()
63 static int xts_twofish_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_twofish_setkey()
199 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local
208 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local
H A Dcast6_avx_glue.c35 static int cast6_setkey_skcipher(struct crypto_skcipher *tfm, in cast6_setkey_skcipher()
172 static int xts_cast6_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_cast6_setkey()
193 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local
202 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local
H A Dserpent_avx2_glue.c33 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, in serpent_setkey_skcipher()
162 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local
172 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local
H A Dcamellia_aesni_avx2_glue.c142 static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, in camellia_setkey()
175 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local
184 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/crypto/
H A Daes_glue.c33 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_encrypt()
38 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aes_decrypt()
43 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
/OK3568_Linux_fs/kernel/drivers/crypto/bcm/
H A Dcipher.c660 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req() local
1908 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_enqueue() local
1965 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in __ahash_init() local
2021 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_init() local
2094 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_update() local
2149 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_final() local
2188 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_finup() local
2421 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_hmac_init() local
2471 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_hmac_digest() local
2595 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in aead_do_fallback() local
[all …]
/OK3568_Linux_fs/kernel/include/crypto/internal/
H A Dhash.h132 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx()
143 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize()
200 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
234 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned()
239 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
H A Drng.h29 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) in crypto_rng_ctx()
34 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, in crypto_rng_set_entropy()
H A Dkpp.h21 static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm) in kpp_tfm_ctx()
31 static inline const char *kpp_alg_name(struct crypto_kpp *tfm) in kpp_alg_name()
/OK3568_Linux_fs/kernel/drivers/crypto/qce/
H A Dskcipher.c172 struct crypto_tfm *tfm = crypto_skcipher_tfm(ablk); in qce_skcipher_setkey() local
225 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in qce_skcipher_crypt() local
269 static int qce_skcipher_init(struct crypto_skcipher *tfm) in qce_skcipher_init()
277 static int qce_skcipher_init_fallback(struct crypto_skcipher *tfm) in qce_skcipher_init_fallback()
291 static void qce_skcipher_exit(struct crypto_skcipher *tfm) in qce_skcipher_exit()
/OK3568_Linux_fs/kernel/drivers/crypto/mediatek/
H A Dmtk-sha.c70 __le32 tfm[2]; member
374 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mtk_sha_init() local
799 static int mtk_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in mtk_sha_setkey()
845 static int mtk_sha_cra_init_alg(struct crypto_tfm *tfm, in mtk_sha_cra_init_alg()
874 static int mtk_sha_cra_init(struct crypto_tfm *tfm) in mtk_sha_cra_init()
879 static int mtk_sha_cra_sha1_init(struct crypto_tfm *tfm) in mtk_sha_cra_sha1_init()
884 static int mtk_sha_cra_sha224_init(struct crypto_tfm *tfm) in mtk_sha_cra_sha224_init()
889 static int mtk_sha_cra_sha256_init(struct crypto_tfm *tfm) in mtk_sha_cra_sha256_init()
894 static int mtk_sha_cra_sha384_init(struct crypto_tfm *tfm) in mtk_sha_cra_sha384_init()
899 static int mtk_sha_cra_sha512_init(struct crypto_tfm *tfm) in mtk_sha_cra_sha512_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Dmxs-dcp.c428 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in mxs_dcp_block_fallback() local
491 static int mxs_dcp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in mxs_dcp_aes_setkey()
518 static int mxs_dcp_aes_fallback_init_tfm(struct crypto_skcipher *tfm) in mxs_dcp_aes_fallback_init_tfm()
534 static void mxs_dcp_aes_fallback_exit_tfm(struct crypto_skcipher *tfm) in mxs_dcp_aes_fallback_exit_tfm()
549 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mxs_dcp_run_sha() local
619 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_req_to_buf() local
724 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_init() local
754 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_update_fx() local
816 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_import() local
831 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_export() local
[all …]
H A Datmel-aes.c1136 static int atmel_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in atmel_aes_setkey()
1242 static int atmel_aes_init_tfm(struct crypto_skcipher *tfm) in atmel_aes_init_tfm()
1252 static int atmel_aes_ctr_init_tfm(struct crypto_skcipher *tfm) in atmel_aes_ctr_init_tfm()
1477 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_gcm_start() local
1514 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_gcm_process() local
1665 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in atmel_aes_gcm_finalize() local
1710 static int atmel_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, in atmel_aes_gcm_setkey()
1726 static int atmel_aes_gcm_setauthsize(struct crypto_aead *tfm, in atmel_aes_gcm_setauthsize()
1742 static int atmel_aes_gcm_init(struct crypto_aead *tfm) in atmel_aes_gcm_init()
1842 static int atmel_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in atmel_aes_xts_setkey()
[all …]
H A Dn2_core.c260 static inline struct n2_ahash_alg *n2_ahash_alg(struct crypto_tfm *tfm) in n2_ahash_alg()
275 static inline struct n2_hmac_alg *n2_hmac_alg(struct crypto_tfm *tfm) in n2_hmac_alg()
313 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init() local
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update() local
339 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final() local
352 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup() local
374 static int n2_hash_cra_init(struct crypto_tfm *tfm) in n2_hash_cra_init()
401 static void n2_hash_cra_exit(struct crypto_tfm *tfm) in n2_hash_cra_exit()
409 static int n2_hmac_cra_init(struct crypto_tfm *tfm) in n2_hmac_cra_init()
450 static void n2_hmac_cra_exit(struct crypto_tfm *tfm) in n2_hmac_cra_exit()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/crypto/
H A Daes-ce-glue.c46 static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_encrypt()
60 static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) in aes_cipher_decrypt()
142 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey()
/OK3568_Linux_fs/kernel/crypto/asymmetric_keys/
H A Dpublic_key.c108 struct crypto_akcipher *tfm; in software_key_query() local
171 struct crypto_akcipher *tfm; in software_key_eds_op() local
255 struct crypto_shash *tfm; in cert_sig_digest_update() local
317 struct crypto_akcipher *tfm; in public_key_verify_signature() local
/OK3568_Linux_fs/kernel/drivers/crypto/ccp/
H A Dccp-crypto-aes-cmac.c27 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_aes_cmac_complete() local
58 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_cmac_update() local
256 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey()
335 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_init()
/OK3568_Linux_fs/kernel/include/crypto/
H A Dxts.h11 static inline int xts_check_key(struct crypto_tfm *tfm, in xts_check_key()
28 static inline int xts_verify_key(struct crypto_skcipher *tfm, in xts_verify_key()

12345678910>>...15