| /linux/include/crypto/ |
| H A D | skcipher.h | 260 struct crypto_tfm *tfm) in __crypto_skcipher_cast() 304 struct crypto_skcipher *tfm) in crypto_skcipher_tfm() 310 struct crypto_lskcipher *tfm) in crypto_lskcipher_tfm() 316 struct crypto_sync_skcipher *tfm) in crypto_sync_skcipher_tfm() 327 static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) in crypto_free_skcipher() 332 static inline void crypto_free_sync_skcipher(struct crypto_sync_skcipher *tfm) in crypto_free_sync_skcipher() 343 static inline void crypto_free_lskcipher(struct crypto_lskcipher *tfm) in crypto_free_lskcipher() 361 struct crypto_skcipher *tfm) in crypto_skcipher_driver_name() 367 struct crypto_lskcipher *tfm) in crypto_lskcipher_driver_name() 373 struct crypto_skcipher *tfm) in crypto_skcipher_alg_common() [all …]
|
| H A D | hash.h | 174 struct crypto_shash *tfm; member 303 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() 327 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm() 338 static inline void crypto_free_ahash(struct crypto_ahash *tfm) in crypto_free_ahash() 355 static inline const char *crypto_ahash_alg_name(struct crypto_ahash *tfm) in crypto_ahash_alg_name() 360 static inline const char *crypto_ahash_driver_name(struct crypto_ahash *tfm) in crypto_ahash_driver_name() 374 static inline unsigned int crypto_ahash_blocksize(struct crypto_ahash *tfm) in crypto_ahash_blocksize() 386 struct crypto_ahash *tfm) in crypto_hash_alg_common() 401 static inline unsigned int crypto_ahash_digestsize(struct crypto_ahash *tfm) in crypto_ahash_digestsize() 416 static inline unsigned int crypto_ahash_statesize(struct crypto_ahash *tfm) in crypto_ahash_statesize() [all …]
|
| H A D | aead.h | 162 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() 183 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() 194 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead() 211 static inline const char *crypto_aead_driver_name(struct crypto_aead *tfm) in crypto_aead_driver_name() 216 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg() 236 static inline unsigned int crypto_aead_ivsize(struct crypto_aead *tfm) in crypto_aead_ivsize() 253 static inline unsigned int crypto_aead_authsize(struct crypto_aead *tfm) in crypto_aead_authsize() 278 static inline unsigned int crypto_aead_blocksize(struct crypto_aead *tfm) in crypto_aead_blocksize() 283 static inline unsigned int crypto_aead_alignmask(struct crypto_aead *tfm) in crypto_aead_alignmask() 288 static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) in crypto_aead_get_flags() [all …]
|
| H A D | sig.h | 96 static inline struct crypto_tfm *crypto_sig_tfm(struct crypto_sig *tfm) in crypto_sig_tfm() 101 static inline struct crypto_sig *__crypto_sig_tfm(struct crypto_tfm *tfm) in __crypto_sig_tfm() 111 static inline struct sig_alg *crypto_sig_alg(struct crypto_sig *tfm) in crypto_sig_alg() 123 static inline void crypto_free_sig(struct crypto_sig *tfm) in crypto_free_sig() 138 static inline unsigned int crypto_sig_keysize(struct crypto_sig *tfm) in crypto_sig_keysize() 155 static inline unsigned int crypto_sig_digestsize(struct crypto_sig *tfm) in crypto_sig_digestsize() 172 static inline unsigned int crypto_sig_maxsize(struct crypto_sig *tfm) in crypto_sig_maxsize() 192 static inline int crypto_sig_sign(struct crypto_sig *tfm, in crypto_sig_sign() 215 static inline int crypto_sig_verify(struct crypto_sig *tfm, in crypto_sig_verify() 237 static inline int crypto_sig_set_pubkey(struct crypto_sig *tfm, in crypto_sig_set_pubkey() [all …]
|
| H A D | kpp.h | 114 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() 124 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() 129 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() 134 static inline unsigned int crypto_kpp_reqsize(struct crypto_kpp *tfm) in crypto_kpp_reqsize() 140 struct crypto_kpp *tfm) in kpp_request_set_tfm() 150 static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm) in crypto_kpp_get_flags() 155 static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) in crypto_kpp_set_flags() 167 static inline void crypto_free_kpp(struct crypto_kpp *tfm) in crypto_free_kpp() 180 static inline struct kpp_request *kpp_request_alloc(struct crypto_kpp *tfm, in kpp_request_alloc() 290 static inline int crypto_kpp_set_secret(struct crypto_kpp *tfm, in crypto_kpp_set_secret() [all …]
|
| H A D | akcipher.h | 123 struct crypto_akcipher *tfm) in crypto_akcipher_tfm() 134 struct crypto_tfm *tfm) in __crypto_akcipher_tfm() 140 struct crypto_akcipher *tfm) in crypto_akcipher_alg() 145 static inline unsigned int crypto_akcipher_reqsize(struct crypto_akcipher *tfm) in crypto_akcipher_reqsize() 151 struct crypto_akcipher *tfm) in akcipher_request_set_tfm() 169 static inline void crypto_free_akcipher(struct crypto_akcipher *tfm) in crypto_free_akcipher() 183 struct crypto_akcipher *tfm, gfp_t gfp) in akcipher_request_alloc() 258 static inline unsigned int crypto_akcipher_maxsize(struct crypto_akcipher *tfm) in crypto_akcipher_maxsize() 277 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_encrypt() local 294 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_decrypt() local [all …]
|
| H A D | acompress.h | 44 #define ACOMP_REQUEST_ON_STACK(name, tfm) \ argument 167 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() 178 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() 184 struct crypto_acomp *tfm) in crypto_comp_alg_common() 189 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) in crypto_acomp_reqsize() 195 struct crypto_acomp *tfm) in acomp_request_set_tfm() 200 static inline bool acomp_is_async(struct crypto_acomp *tfm) in acomp_is_async() 218 static inline void crypto_free_acomp(struct crypto_acomp *tfm) in crypto_free_acomp() 232 static inline const char *crypto_acomp_alg_name(struct crypto_acomp *tfm) in crypto_acomp_alg_name() 237 static inline const char *crypto_acomp_driver_name(struct crypto_acomp *tfm) in crypto_acomp_driver_name() [all …]
|
| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_cipher.c | 374 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aes_setkey() local 405 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_setkey() local 1004 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in safexcel_aead_handle_result() local 1075 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in safexcel_aead_send() local 1094 static int safexcel_cipher_exit_inv(struct crypto_tfm *tfm, in safexcel_cipher_exit_inv() 1127 static int safexcel_skcipher_exit_inv(struct crypto_tfm *tfm) in safexcel_skcipher_exit_inv() 1142 static int safexcel_aead_exit_inv(struct crypto_tfm *tfm) in safexcel_aead_exit_inv() 1206 static int safexcel_skcipher_cra_init(struct crypto_tfm *tfm) in safexcel_skcipher_cra_init() 1225 static int safexcel_cipher_cra_exit(struct crypto_tfm *tfm) in safexcel_cipher_cra_exit() 1239 static void safexcel_skcipher_cra_exit(struct crypto_tfm *tfm) in safexcel_skcipher_cra_exit() [all …]
|
| H A D | safexcel_hash.c | 620 static int safexcel_ahash_exit_inv(struct crypto_tfm *tfm) in safexcel_ahash_exit_inv() 916 static int safexcel_ahash_cra_init(struct crypto_tfm *tfm) in safexcel_ahash_cra_init() 959 static void safexcel_ahash_cra_exit(struct crypto_tfm *tfm) in safexcel_ahash_cra_exit() 1119 struct crypto_ahash *tfm; in __safexcel_hmac_setkey() local 1188 static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_alg_setkey() 1197 static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha1_setkey() 1350 static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha224_setkey() 1422 static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha256_setkey() 1608 static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha512_setkey() 1680 static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha384_setkey() [all …]
|
| /linux/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | sun4i-ss-cipher.c | 17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll() local 150 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback() local 178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll() local 399 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() local 410 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() local 422 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() local 433 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() local 445 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() local 456 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() local 468 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() local [all …]
|
| /linux/drivers/crypto/allwinner/sun8i-ce/ |
| H A D | sun8i-ce-hash.c | 26 static void sun8i_ce_hash_stat_fb_inc(struct crypto_ahash *tfm) in sun8i_ce_hash_stat_fb_inc() 38 int sun8i_ce_hash_init_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_init_tfm() 78 void sun8i_ce_hash_exit_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_exit_tfm() 89 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_init() local 105 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_export() local 119 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_import() local 133 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_final() local 150 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_update() local 165 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_finup() local 183 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_digest_fb() local [all …]
|
| H A D | sun8i-ce-cipher.c | 26 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_need_fallback() local 107 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_fallback() local 137 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_prepare() local 313 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_unprepare() local 353 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sun8i_ce_cipher_do_one() local 379 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skdecrypt() local 398 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skencrypt() local 415 int sun8i_ce_cipher_init(struct crypto_tfm *tfm) in sun8i_ce_cipher_init() 454 void sun8i_ce_cipher_exit(struct crypto_tfm *tfm) in sun8i_ce_cipher_exit() 463 int sun8i_ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ce_aes_setkey() [all …]
|
| /linux/include/crypto/internal/ |
| H A D | cipher.h | 37 static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm) in __crypto_cipher_cast() 66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) in crypto_cipher_tfm() 75 static inline void crypto_free_cipher(struct crypto_cipher *tfm) in crypto_free_cipher() 109 static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm) in crypto_cipher_blocksize() 114 static inline unsigned int crypto_cipher_alignmask(struct crypto_cipher *tfm) in crypto_cipher_alignmask() 119 static inline u32 crypto_cipher_get_flags(struct crypto_cipher *tfm) in crypto_cipher_get_flags() 124 static inline void crypto_cipher_set_flags(struct crypto_cipher *tfm, in crypto_cipher_set_flags() 130 static inline void crypto_cipher_clear_flags(struct crypto_cipher *tfm, in crypto_cipher_clear_flags() 215 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg()
|
| H A D | des.h | 26 static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key) in crypto_des_verify_key() 91 static inline int crypto_des3_ede_verify_key(struct crypto_tfm *tfm, in crypto_des3_ede_verify_key() 99 static inline int verify_skcipher_des_key(struct crypto_skcipher *tfm, in verify_skcipher_des_key() 105 static inline int verify_skcipher_des3_key(struct crypto_skcipher *tfm, in verify_skcipher_des3_key() 111 static inline int verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des_key() 119 static inline int verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des3_key()
|
| /linux/crypto/ |
| H A D | ahash.c | 34 static inline bool crypto_ahash_block_only(struct crypto_ahash *tfm) in crypto_ahash_block_only() 40 static inline bool crypto_ahash_final_nonzero(struct crypto_ahash *tfm) in crypto_ahash_final_nonzero() 46 static inline bool crypto_ahash_need_fallback(struct crypto_ahash *tfm) in crypto_ahash_need_fallback() 157 static inline struct crypto_shash *ahash_to_shash(struct crypto_ahash *tfm) in ahash_to_shash() 163 struct crypto_ahash *tfm) in prepare_shash_desc() 244 static void crypto_exit_ahash_using_shash(struct crypto_tfm *tfm) in crypto_exit_ahash_using_shash() 251 static int crypto_init_ahash_using_shash(struct crypto_tfm *tfm) in crypto_init_ahash_using_shash() 277 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey() 283 static void ahash_set_needkey(struct crypto_ahash *tfm, struct ahash_alg *alg) in ahash_set_needkey() 290 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey() [all …]
|
| H A D | lskcipher.c | 21 struct crypto_tfm *tfm) in __crypto_lskcipher_cast() 32 static int lskcipher_setkey_unaligned(struct crypto_lskcipher *tfm, in lskcipher_setkey_unaligned() 53 int crypto_lskcipher_setkey(struct crypto_lskcipher *tfm, const u8 *key, in crypto_lskcipher_setkey() 70 struct crypto_lskcipher *tfm, const u8 *src, u8 *dst, unsigned len, in crypto_lskcipher_crypt_unaligned() 71 u8 *iv, int (*crypt)(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_crypt_unaligned() 123 static int crypto_lskcipher_crypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_crypt() 125 int (*crypt)(struct crypto_lskcipher *tfm, in crypto_lskcipher_crypt() 140 int crypto_lskcipher_encrypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_encrypt() 149 int crypto_lskcipher_decrypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_decrypt() 159 int (*crypt)(struct crypto_lskcipher *tfm, in crypto_lskcipher_crypt_sg() [all …]
|
| H A D | skcipher.c | 41 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_virt() local 78 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_common() local 114 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_decrypt() local 122 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey() 128 static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm, in skcipher_setkey_unaligned() 149 int crypto_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_skcipher_setkey() 188 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_encrypt() local 201 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_decrypt() local 214 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_lskcipher_export() local 227 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_lskcipher_import() local [all …]
|
| H A D | bpf_crypto_skcipher.c | 13 static void bpf_crypto_lskcipher_free_tfm(void *tfm) in bpf_crypto_lskcipher_free_tfm() 23 static int bpf_crypto_lskcipher_setkey(void *tfm, const u8 *key, unsigned int keylen) in bpf_crypto_lskcipher_setkey() 28 static u32 bpf_crypto_lskcipher_get_flags(void *tfm) in bpf_crypto_lskcipher_get_flags() 33 static unsigned int bpf_crypto_lskcipher_ivsize(void *tfm) in bpf_crypto_lskcipher_ivsize() 38 static unsigned int bpf_crypto_lskcipher_statesize(void *tfm) in bpf_crypto_lskcipher_statesize() 43 static int bpf_crypto_lskcipher_encrypt(void *tfm, const u8 *src, u8 *dst, in bpf_crypto_lskcipher_encrypt() 49 static int bpf_crypto_lskcipher_decrypt(void *tfm, const u8 *src, u8 *dst, in bpf_crypto_lskcipher_decrypt()
|
| H A D | shash.c | 19 static inline bool crypto_shash_block_only(struct crypto_shash *tfm) in crypto_shash_block_only() 25 static inline bool crypto_shash_final_nonzero(struct crypto_shash *tfm) in crypto_shash_final_nonzero() 31 static inline bool crypto_shash_finup_max(struct crypto_shash *tfm) in crypto_shash_finup_max() 37 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() 44 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() 50 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() 69 struct crypto_shash *tfm = desc->tfm; in __crypto_shash_init() local 113 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local 186 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local 196 int crypto_shash_tfm_digest(struct crypto_shash *tfm, const u8 *data, in crypto_shash_tfm_digest() [all …]
|
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-hash.c | 116 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_init() local 130 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_update() local 145 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_final() local 160 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_finup() local 176 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_digest() local 192 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_import() local 206 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_export() local 354 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_do_init() local 468 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_do_final() local 519 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_do_one_req() local [all …]
|
| /linux/drivers/crypto/rockchip/ |
| H A D | rk3288_crypto_ahash.c | 47 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_ahash_digest_fb() local 66 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process() local 122 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init() local 136 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update() local 151 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final() local 166 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup() local 182 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import() local 196 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export() local 263 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_hash_run() local 346 static int rk_hash_init_tfm(struct crypto_ahash *tfm) in rk_hash_init_tfm() [all …]
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-cipher.c | 25 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_need_fallback() local 91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher_fallback() local 122 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_setup_ivs() local 185 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher() local 347 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skdecrypt() local 368 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skencrypt() local 387 int sun8i_ss_cipher_init(struct crypto_tfm *tfm) in sun8i_ss_cipher_init() 427 void sun8i_ss_cipher_exit(struct crypto_tfm *tfm) in sun8i_ss_cipher_exit() 436 int sun8i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_aes_setkey() 465 int sun8i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_des3_setkey()
|
| /linux/drivers/crypto/caam/ |
| H A D | caampkc.c | 65 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap() local 77 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap() local 89 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f2_unmap() local 106 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f3_unmap() local 156 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f_done() local 252 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_edesc_alloc() local 379 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in akcipher_do_one_req() local 407 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb() local 453 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb() local 500 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f2_pdb() local [all …]
|
| /linux/arch/s390/crypto/ |
| H A D | aes_s390.c | 76 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() 88 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() 109 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() 120 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() 132 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() 149 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() 179 static int setkey_fallback_skcipher(struct crypto_skcipher *tfm, const u8 *key, in setkey_fallback_skcipher() 205 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_aes_set_key() 228 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_crypt() local 258 static int fallback_init_skcipher(struct crypto_skcipher *tfm) in fallback_init_skcipher() [all …]
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 103 struct crypto_aead *tfm; in validate_hmac_cipher_null() local 239 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in create_ctx_hdr() local 394 static int otx_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_xts_setkey() 423 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey() 439 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_aes_setkey() 465 static int otx_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_cbc_aes_setkey() 471 static int otx_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_ecb_aes_setkey() 477 static int otx_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_cbc_des3_setkey() 483 static int otx_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_ecb_des3_setkey() 489 static int otx_cpt_enc_dec_init(struct crypto_skcipher *tfm) in otx_cpt_enc_dec_init() [all …]
|