Home
last modified time | relevance | path

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

12345678910>>...16

/openbmc/linux/arch/arm/crypto/
H A Dcurve25519-glue.c49 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret()
66 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_value() local
97 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size()
/openbmc/linux/drivers/crypto/
H A Dimg-hash.c489 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_init() local
554 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_update() local
569 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_final() local
583 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_finup() local
599 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_import() local
612 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_export() local
624 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest() local
696 static int img_hash_cra_md5_init(struct crypto_tfm *tfm) in img_hash_cra_md5_init()
701 static int img_hash_cra_sha1_init(struct crypto_tfm *tfm) in img_hash_cra_sha1_init()
706 static int img_hash_cra_sha224_init(struct crypto_tfm *tfm) in img_hash_cra_sha224_init()
[all …]
H A Dmxs-dcp.c429 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in mxs_dcp_block_fallback() local
519 static int mxs_dcp_aes_fallback_init_tfm(struct crypto_skcipher *tfm) in mxs_dcp_aes_fallback_init_tfm()
535 static void mxs_dcp_aes_fallback_exit_tfm(struct crypto_skcipher *tfm) in mxs_dcp_aes_fallback_exit_tfm()
550 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mxs_dcp_run_sha() local
620 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_req_to_buf() local
725 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_init() local
755 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_update_fx() local
817 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_import() local
832 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_export() local
842 static int dcp_sha_cra_init(struct crypto_tfm *tfm) in dcp_sha_cra_init()
[all …]
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_hash.c287 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_update_complete() local
305 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_digest_complete() local
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_complete() local
345 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_result() local
368 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_hmac() local
421 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_digest() local
559 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_update() local
635 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_do_finup() local
1110 static int cc_get_hash_len(struct crypto_tfm *tfm) in cc_get_hash_len()
1120 static int cc_cra_init(struct crypto_tfm *tfm) in cc_cra_init()
[all …]
/openbmc/linux/crypto/
H A Dgeniv.c19 static int aead_geniv_setkey(struct crypto_aead *tfm, in aead_geniv_setkey()
27 static int aead_geniv_setauthsize(struct crypto_aead *tfm, in aead_geniv_setauthsize()
153 void aead_exit_geniv(struct crypto_aead *tfm) in aead_exit_geniv()
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_shash *tfm) in cmac_init_tfm()
218 static int cmac_clone_tfm(struct crypto_shash *tfm, struct crypto_shash *otfm) in cmac_clone_tfm()
233 static void cmac_exit_tfm(struct crypto_shash *tfm) in cmac_exit_tfm()
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
323 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in adiantum_crypt() local
396 static int adiantum_init_tfm(struct crypto_skcipher *tfm) in adiantum_init_tfm()
448 static void adiantum_exit_tfm(struct crypto_skcipher *tfm) in adiantum_exit_tfm()
H A Daead.c32 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned()
52 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey()
73 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize()
151 static void crypto_aead_exit_tfm(struct crypto_tfm *tfm) in crypto_aead_exit_tfm()
159 static int crypto_aead_init_tfm(struct crypto_tfm *tfm) in crypto_aead_init_tfm()
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-xts.c75 static int ccp_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_xts_setkey()
107 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_xts_crypt() local
197 static int ccp_aes_xts_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_xts_init_tfm()
220 static void ccp_aes_xts_exit_tfm(struct crypto_skcipher *tfm) in ccp_aes_xts_exit_tfm()
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()
/openbmc/linux/drivers/crypto/caam/
H A Dcaamprng.c76 static int caam_prng_generate(struct crypto_rng *tfm, in caam_prng_generate()
138 static void caam_prng_exit(struct crypto_tfm *tfm) {} in caam_prng_exit()
140 static int caam_prng_init(struct crypto_tfm *tfm) in caam_prng_init()
145 static int caam_prng_seed(struct crypto_rng *tfm, in caam_prng_seed()
/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c29 struct crypto_akcipher *tfm; member
365 static int virtio_crypto_rsa_set_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_set_key()
429 static int virtio_crypto_rsa_raw_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_priv_key()
439 static int virtio_crypto_p1pad_rsa_sha1_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_priv_key()
448 static int virtio_crypto_rsa_raw_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_pub_key()
457 static int virtio_crypto_p1pad_rsa_sha1_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_pub_key()
466 static unsigned int virtio_crypto_rsa_max_size(struct crypto_akcipher *tfm) in virtio_crypto_rsa_max_size()
474 static int virtio_crypto_rsa_init_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_init_tfm()
486 static void virtio_crypto_rsa_exit_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_exit_tfm()
/openbmc/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c902 struct crypto_aead *tfm; in GEN_SEC_SETKEY_FUNC() local
953 struct crypto_aead *tfm = crypto_aead_reqtfm(aead_req); in sec_aead_mac_init() local
1122 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in sec_aead_setauthsize() local
1133 struct crypto_aead *tfm, const u8 *key, in sec_aead_fallback_setkey()
1706 struct crypto_aead *tfm = crypto_aead_reqtfm(a_req); in sec_aead_callback() local
1880 static int sec_aead_init(struct crypto_aead *tfm) in sec_aead_init()
1922 static void sec_aead_exit(struct crypto_aead *tfm) in sec_aead_exit()
1953 static void sec_aead_ctx_exit(struct crypto_aead *tfm) in sec_aead_ctx_exit()
2263 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in sec_aead_spec_check() local
2311 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in sec_aead_param_check() local
[all …]
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-hash.c273 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_init() local
291 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_update() local
308 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_final() local
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_finup() local
342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_digest_fb() local
357 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_digest() local
381 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_export() local
395 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_import() local
/openbmc/linux/include/crypto/
H A Dsig.h45 static inline struct crypto_tfm *crypto_sig_tfm(struct crypto_sig *tfm) in crypto_sig_tfm()
57 static inline void crypto_free_sig(struct crypto_sig *tfm) in crypto_free_sig()
H A Dalgapi.h184 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) in crypto_tfm_ctx()
189 static inline void *crypto_tfm_ctx_align(struct crypto_tfm *tfm, in crypto_tfm_ctx_align()
198 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) in crypto_tfm_ctx_aligned()
213 static inline void *crypto_tfm_ctx_dma(struct crypto_tfm *tfm) in crypto_tfm_ctx_dma()
219 struct crypto_tfm *tfm) in crypto_tfm_alg_instance()
277 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type()
/openbmc/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c592 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_dh_compute_value() local
742 static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm) in hpre_dh_max_size()
749 static int hpre_dh_init_tfm(struct crypto_kpp *tfm) in hpre_dh_init_tfm()
758 static void hpre_dh_exit_tfm(struct crypto_kpp *tfm) in hpre_dh_exit_tfm()
795 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_enc() local
843 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_dec() local
1169 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm) in hpre_rsa_init_tfm()
1190 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) in hpre_rsa_exit_tfm()
1586 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_ecdh_compute_value() local
1668 static void hpre_ecdh_exit_tfm(struct crypto_kpp *tfm) in hpre_ecdh_exit_tfm()
[all …]
/openbmc/linux/include/crypto/internal/
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()
/openbmc/linux/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()
/openbmc/linux/arch/x86/crypto/
H A Dblowfish_glue.c43 static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_encrypt()
48 static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_decrypt()
53 static int blowfish_setkey_skcipher(struct crypto_skcipher *tfm, in blowfish_setkey_skcipher()
H A Dtwofish_glue.c54 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_encrypt()
59 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_decrypt()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_comp_algs.c81 struct crypto_acomp *tfm = crypto_acomp_reqtfm(areq); in qat_comp_resubmit() local
181 struct crypto_acomp *tfm = crypto_acomp_reqtfm(areq); in qat_comp_generic_callback() local
266 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); in qat_comp_alg_init_tfm() local
289 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); in qat_comp_alg_exit_tfm() local
298 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); in qat_comp_alg_rfc1950_init_tfm() local
314 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); in qat_comp_alg_compress_decompress() local
419 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); in qat_comp_alg_rfc1950_decompress() local
/openbmc/linux/drivers/crypto/bcm/
H A Dcipher.c658 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req() local
1905 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_enqueue() local
1962 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in __ahash_init() local
2576 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in aead_do_fallback() local
2724 struct crypto_tfm *tfm = crypto_aead_tfm(cipher); in aead_authenc_setkey() local
2819 struct crypto_tfm *tfm = crypto_aead_tfm(cipher); in aead_gcm_ccm_setkey() local
4144 static int generic_cra_init(struct crypto_tfm *tfm, in generic_cra_init()
4185 static int ahash_cra_init(struct crypto_tfm *tfm) in ahash_cra_init()
4210 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in aead_cra_init() local
4255 static void generic_cra_exit(struct crypto_tfm *tfm) in generic_cra_exit()
[all …]
/openbmc/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_crypto.c104 struct crypto_sync_skcipher *tfm, in krb5_encrypt()
159 struct crypto_sync_skcipher *tfm, in krb5_decrypt()
215 struct crypto_ahash *tfm; in make_checksum() local
314 gss_krb5_checksum(struct crypto_ahash *tfm, char *header, int hdrlen, in gss_krb5_checksum()
385 struct crypto_sync_skcipher *tfm = in encryptor() local
446 gss_encrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *buf, in gss_encrypt_xdr_buf()
487 struct crypto_sync_skcipher *tfm = in decryptor() local
529 gss_decrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *buf, in gss_decrypt_xdr_buf()
930 struct crypto_ahash *tfm, const struct xdr_buf *body, in krb5_etm_checksum()

12345678910>>...16