/openbmc/linux/crypto/ |
H A D | shash.c | 34 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() 93 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() local 123 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() local 142 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() local 170 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() local 197 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local 230 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local 409 int crypto_init_shash_ops_async(struct crypto_tfm *tfm) in crypto_init_shash_ops_async() 466 static void crypto_shash_exit_tfm(struct crypto_tfm *tfm) in crypto_shash_exit_tfm() 474 static int crypto_shash_init_tfm(struct crypto_tfm *tfm) in crypto_shash_init_tfm() [all …]
|
H A D | rsa-pkcs1pad.c | 107 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key() 149 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size() 176 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete() local 228 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() local 276 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete() local 343 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt() local 376 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign() local 433 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete() local 530 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify() local 563 static int pkcs1pad_init_tfm(struct crypto_akcipher *tfm) in pkcs1pad_init_tfm() [all …]
|
H A D | crypto_null.c | 27 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress() 59 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, in null_hash_setkey() 63 static int null_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in null_skcipher_setkey() 67 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, in null_setkey() 71 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in null_crypt() 155 struct crypto_sync_skcipher *tfm; in crypto_get_default_null_skcipher() local
|
H A D | zstd.c | 106 static void *zstd_alloc_ctx(struct crypto_scomp *tfm) in zstd_alloc_ctx() 124 static int zstd_init(struct crypto_tfm *tfm) in zstd_init() 137 static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) in zstd_free_ctx() 143 static void zstd_exit(struct crypto_tfm *tfm) in zstd_exit() 164 static int zstd_compress(struct crypto_tfm *tfm, const u8 *src, in zstd_compress() 172 static int zstd_scompress(struct crypto_scomp *tfm, const u8 *src, in zstd_scompress() 192 static int zstd_decompress(struct crypto_tfm *tfm, const u8 *src, in zstd_decompress() 200 static int zstd_sdecompress(struct crypto_scomp *tfm, const u8 *src, in zstd_sdecompress()
|
H A D | rsa.c | 88 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key() 95 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() local 134 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() local 236 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() 275 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() 338 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() 345 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
|
H A D | pcbc.c | 22 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_segment() 44 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace() 66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_encrypt() local 89 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment() 111 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace() 133 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_decrypt() local
|
H A D | ahash.c | 156 static void ahash_set_needkey(struct crypto_ahash *tfm) in ahash_set_needkey() 165 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey() 189 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req() local 290 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op() local 304 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_final() local 316 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_finup() local 332 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_digest() local 400 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_def_finup() local 414 static void crypto_ahash_exit_tfm(struct crypto_tfm *tfm) in crypto_ahash_exit_tfm() 422 static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) in crypto_ahash_init_tfm() [all …]
|
H A D | tea.c | 42 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in tea_setkey() 57 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_encrypt() 85 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_decrypt() 115 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in xtea_setkey() 130 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_encrypt() 151 static void xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_decrypt() 174 static void xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_encrypt() 195 static void xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_decrypt()
|
/openbmc/linux/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 147 struct crypto_tfm *tfm = crypto_skcipher_tfm(atfm); in sec_alg_skcipher_init_context() local 227 static int sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey() 253 static int sec_alg_skcipher_setkey_aes_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ecb() 275 static int sec_alg_skcipher_setkey_aes_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_cbc() 297 static int sec_alg_skcipher_setkey_aes_ctr(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ctr() 319 static int sec_alg_skcipher_setkey_aes_xts(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_xts() 343 static int sec_alg_skcipher_setkey_des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_ecb() 350 static int sec_alg_skcipher_setkey_des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_cbc() 711 struct crypto_tfm *tfm = crypto_skcipher_tfm(atfm); in sec_alg_skcipher_crypto() local 872 static int sec_alg_skcipher_init(struct crypto_skcipher *tfm) in sec_alg_skcipher_init() [all …]
|
/openbmc/linux/arch/arm/crypto/ |
H A D | aes-ce-glue.c | 137 static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ce_aes_setkey() 150 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key() 169 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 189 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 210 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt_walk() local 240 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt_walk() local 269 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() local 327 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() local 385 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() local 446 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local [all …]
|
/openbmc/linux/arch/sparc/crypto/ |
H A D | aes_glue.c | 168 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() 199 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, in aes_set_key_skcipher() 205 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_aes_encrypt() 212 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_aes_decrypt() 221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 244 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 270 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 294 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 336 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_crypt() local
|
H A D | camellia_glue.c | 37 static int camellia_set_key(struct crypto_tfm *tfm, const u8 *_in_key, in camellia_set_key() 53 static int camellia_set_key_skcipher(struct crypto_skcipher *tfm, in camellia_set_key_skcipher() 62 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_encrypt() 71 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt() 90 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 140 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 169 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
|
/openbmc/linux/include/crypto/ |
H A D | acompress.h | 130 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() 141 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() 147 struct crypto_acomp *tfm) in crypto_comp_alg_common() 152 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) in crypto_acomp_reqsize() 158 struct crypto_acomp *tfm) in acomp_request_set_tfm() 175 static inline void crypto_free_acomp(struct crypto_acomp *tfm) in crypto_free_acomp() 290 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_compress() local 316 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_decompress() local
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_aead.c | 64 static void cc_aead_exit(struct crypto_aead *tfm) in cc_aead_exit() 125 static int cc_aead_init(struct crypto_aead *tfm) in cc_aead_init() 212 struct crypto_aead *tfm = crypto_aead_reqtfm(cc_req); in cc_aead_complete() local 874 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_digest_desc() local 924 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_cipher_desc() local 991 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_hmac_desc() local 1024 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_xcbc_desc() local 1100 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_scheme_desc() local 1162 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_mlli_to_sram() local 1213 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_hmac_authenc() local [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | aria_aesni_avx_glue.c | 66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_encrypt() local 74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_decrypt() local 80 static int aria_avx_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx_set_key() 89 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ctr_encrypt() local 146 static int aria_avx_init_tfm(struct crypto_skcipher *tfm) in aria_avx_init_tfm()
|
H A D | aria_gfni_avx512_glue.c | 55 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx512_ecb_encrypt() local 63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx512_ecb_decrypt() local 69 static int aria_avx512_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx512_set_key() 78 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx512_ctr_encrypt() local 158 static int aria_avx512_init_tfm(struct crypto_skcipher *tfm) in aria_avx512_init_tfm()
|
H A D | aria_aesni_avx2_glue.c | 68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx2_ecb_encrypt() local 76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx2_ecb_decrypt() local 82 static int aria_avx2_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx2_set_key() 91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx2_ctr_encrypt() local 159 static int aria_avx2_init_tfm(struct crypto_skcipher *tfm) in aria_avx2_init_tfm()
|
H A D | sm4_aesni_avx_glue.c | 33 static int sm4_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_skcipher_setkey() 77 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_ecb_encrypt() local 86 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_ecb_decrypt() local 95 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt() local 129 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_cbc_decrypt() local 193 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cfb_encrypt() local 235 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_cfb_decrypt() local 304 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_avx_ctr_crypt() local
|
H A D | des3_ede_glue.c | 56 static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_encrypt() 61 static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_decrypt() 112 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 120 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 230 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 246 static int des3_ede_x86_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_x86_setkey() 280 static int des3_ede_x86_setkey_skcipher(struct crypto_skcipher *tfm, in des3_ede_x86_setkey_skcipher()
|
/openbmc/linux/arch/s390/crypto/ |
H A D | paes_s390.c | 161 static int ecb_paes_init(struct crypto_skcipher *tfm) in ecb_paes_init() 171 static void ecb_paes_exit(struct crypto_skcipher *tfm) in ecb_paes_exit() 214 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_paes_crypt() local 276 static int cbc_paes_init(struct crypto_skcipher *tfm) in cbc_paes_init() 286 static void cbc_paes_exit(struct crypto_skcipher *tfm) in cbc_paes_exit() 329 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_paes_crypt() local 396 static int xts_paes_init(struct crypto_skcipher *tfm) in xts_paes_init() 407 static void xts_paes_exit(struct crypto_skcipher *tfm) in xts_paes_exit() 495 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_paes_crypt() local 576 static int ctr_paes_init(struct crypto_skcipher *tfm) in ctr_paes_init() [all …]
|
/openbmc/linux/drivers/crypto/amlogic/ |
H A D | amlogic-gxl-cipher.c | 60 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_cipher_do_fallback() local 86 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_cipher() local 276 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_skdecrypt() local 294 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_skencrypt() local 310 int meson_cipher_init(struct crypto_tfm *tfm) in meson_cipher_init() 336 void meson_cipher_exit(struct crypto_tfm *tfm) in meson_cipher_exit() 344 int meson_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in meson_aes_setkey()
|
/openbmc/linux/drivers/crypto/ccp/ |
H A D | ccp-crypto-rsa.c | 57 static unsigned int ccp_rsa_maxsize(struct crypto_akcipher *tfm) in ccp_rsa_maxsize() 66 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ccp_rsa_crypt() local 126 static int ccp_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setkey() 181 static int ccp_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setprivkey() 187 static int ccp_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setpubkey() 193 static int ccp_rsa_init_tfm(struct crypto_akcipher *tfm) in ccp_rsa_init_tfm() 203 static void ccp_rsa_exit_tfm(struct crypto_akcipher *tfm) in ccp_rsa_exit_tfm()
|
/openbmc/linux/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-hcu-core.c | 166 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_find_dev() local 378 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in prepare_ipad() local 416 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_do_one_request() local 565 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_init() local 654 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_fin_common() local 747 static int kmb_ocs_hcu_setkey(struct crypto_ahash *tfm, const u8 *key, in kmb_ocs_hcu_setkey() 829 static int kmb_ocs_hcu_sha_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_sha_cra_init() 838 static int kmb_ocs_hcu_sm3_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_sm3_cra_init() 849 static int kmb_ocs_hcu_hmac_sm3_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_hmac_sm3_cra_init() 861 static int kmb_ocs_hcu_hmac_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_hmac_cra_init() [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | aes_cmac.c | 25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() 49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() 74 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup() local 89 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) in ieee80211_aes_cmac_key_free()
|
/openbmc/linux/drivers/crypto/intel/ixp4xx/ |
H A D | ixp4xx_crypto.c | 143 struct crypto_tfm *tfm; member 247 static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) in cipher_cfg_enc() 355 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in finish_scattered_hmac() local 614 static int init_tfm(struct crypto_tfm *tfm) in init_tfm() 630 static int init_tfm_ablk(struct crypto_skcipher *tfm) in init_tfm_ablk() 652 static int init_tfm_aead(struct crypto_aead *tfm) in init_tfm_aead() 658 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm() 666 static void exit_tfm_ablk(struct crypto_skcipher *tfm) in exit_tfm_ablk() 675 static void exit_tfm_aead(struct crypto_aead *tfm) in exit_tfm_aead() 783 static int gen_rev_aes_key(struct crypto_tfm *tfm) in gen_rev_aes_key() [all …]
|