/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 …]
|
/linux/include/crypto/ |
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 | 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 …]
|
/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/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 | scompress.h | 54 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() 59 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm() 64 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp() 69 static inline struct scomp_alg *crypto_scomp_alg(struct crypto_scomp *tfm) in crypto_scomp_alg() 74 static inline void *crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) in crypto_scomp_alloc_ctx() 79 static inline void crypto_scomp_free_ctx(struct crypto_scomp *tfm, in crypto_scomp_free_ctx() 85 static inline int crypto_scomp_compress(struct crypto_scomp *tfm, in crypto_scomp_compress() 92 static inline int crypto_scomp_decompress(struct crypto_scomp *tfm, in crypto_scomp_decompress()
|
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 | 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 | 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 | 842.c | 31 static void *crypto842_alloc_ctx(struct crypto_scomp *tfm) in crypto842_alloc_ctx() 42 static int crypto842_init(struct crypto_tfm *tfm) in crypto842_init() 53 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) in crypto842_free_ctx() 58 static void crypto842_exit(struct crypto_tfm *tfm) in crypto842_exit() 65 static int crypto842_compress(struct crypto_tfm *tfm, in crypto842_compress() 74 static int crypto842_scompress(struct crypto_scomp *tfm, in crypto842_scompress() 81 static int crypto842_decompress(struct crypto_tfm *tfm, in crypto842_decompress() 88 static int crypto842_sdecompress(struct crypto_scomp *tfm, in crypto842_sdecompress()
|
H A D | lz4hc.c | 18 static void *lz4hc_alloc_ctx(struct crypto_scomp *tfm) in lz4hc_alloc_ctx() 29 static int lz4hc_init(struct crypto_tfm *tfm) in lz4hc_init() 40 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4hc_free_ctx() 45 static void lz4hc_exit(struct crypto_tfm *tfm) in lz4hc_exit() 65 static int lz4hc_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_scompress() 72 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_compress_crypto() 94 static int lz4hc_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_sdecompress() 101 static int lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_decompress_crypto()
|
H A D | lz4.c | 19 static void *lz4_alloc_ctx(struct crypto_scomp *tfm) in lz4_alloc_ctx() 30 static int lz4_init(struct crypto_tfm *tfm) in lz4_init() 41 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4_free_ctx() 46 static void lz4_exit(struct crypto_tfm *tfm) in lz4_exit() 66 static int lz4_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4_scompress() 73 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_compress_crypto() 93 static int lz4_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4_sdecompress() 100 static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_decompress_crypto()
|
H A D | cryptd.c | 187 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue() 270 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_complete() local 316 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_enqueue() local 339 static int cryptd_skcipher_init_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_init_tfm() 358 static void cryptd_skcipher_exit_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_exit_tfm() 430 static int cryptd_hash_init_tfm(struct crypto_ahash *tfm) in cryptd_hash_init_tfm() 450 struct crypto_ahash *tfm) in cryptd_hash_clone_tfm() 464 static void cryptd_hash_exit_tfm(struct crypto_ahash *tfm) in cryptd_hash_exit_tfm() 487 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue() local 516 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_complete() local [all …]
|
H A D | ecdh.c | 21 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) in ecdh_get_ctx() 26 static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in ecdh_set_secret() 57 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() local 123 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size() 131 static int ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p192_init_tfm() 156 static int ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p256_init_tfm() 181 static int ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p384_init_tfm()
|
H A D | lzo-rle.c | 18 static void *lzorle_alloc_ctx(struct crypto_scomp *tfm) in lzorle_alloc_ctx() 29 static int lzorle_init(struct crypto_tfm *tfm) in lzorle_init() 40 static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzorle_free_ctx() 45 static void lzorle_exit(struct crypto_tfm *tfm) in lzorle_exit() 67 static int lzorle_compress(struct crypto_tfm *tfm, const u8 *src, in lzorle_compress() 75 static int lzorle_scompress(struct crypto_scomp *tfm, const u8 *src, in lzorle_scompress() 97 static int lzorle_decompress(struct crypto_tfm *tfm, const u8 *src, in lzorle_decompress() 103 static int lzorle_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lzorle_sdecompress()
|
/linux/drivers/crypto/cavium/zip/ |
H A D | zip_crypto.c | 199 int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm) in zip_alloc_comp_ctx_deflate() 206 int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm) in zip_alloc_comp_ctx_lzs() 213 void zip_free_comp_ctx(struct crypto_tfm *tfm) in zip_free_comp_ctx() 220 int zip_comp_compress(struct crypto_tfm *tfm, in zip_comp_compress() 229 int zip_comp_decompress(struct crypto_tfm *tfm, in zip_comp_decompress() 239 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm) in zip_alloc_scomp_ctx_deflate() 258 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm) in zip_alloc_scomp_ctx_lzs() 277 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *ctx) in zip_free_scomp_ctx() 285 int zip_scomp_compress(struct crypto_scomp *tfm, in zip_scomp_compress() 294 int zip_scomp_decompress(struct crypto_scomp *tfm, in zip_scomp_decompress()
|
/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 67 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process() local 123 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 165 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 195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export() local 261 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_hash_run() local 344 static int rk_hash_init_tfm(struct crypto_ahash *tfm) in rk_hash_init_tfm() [all …]
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-hash.c | 26 int sun8i_ce_hash_init_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_init_tfm() 64 void sun8i_ce_hash_exit_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_exit_tfm() 75 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_init() local 89 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_export() local 101 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_import() local 113 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_final() local 138 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_update() local 153 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_finup() local 181 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_digest_fb() local 208 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_need_fallback() 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 91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_fallback() local 123 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_prepare() local 306 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_unprepare() local 350 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(breq); in sun8i_ce_cipher_run() local 377 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skdecrypt() local 396 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skencrypt() local 413 int sun8i_ce_cipher_init(struct crypto_tfm *tfm) in sun8i_ce_cipher_init() 452 void sun8i_ce_cipher_exit(struct crypto_tfm *tfm) in sun8i_ce_cipher_exit() 461 int sun8i_ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ce_aes_setkey() [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/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 …]
|
/linux/arch/s390/crypto/ |
H A D | aes_s390.c | 77 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() 89 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() 110 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() 121 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() 133 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() 150 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() 180 static int setkey_fallback_skcipher(struct crypto_skcipher *tfm, const u8 *key, in setkey_fallback_skcipher() 206 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_aes_set_key() 229 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_crypt() local 259 static int fallback_init_skcipher(struct crypto_skcipher *tfm) in fallback_init_skcipher() [all …]
|
/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.c | 88 struct crypto_aead *tfm; in validate_hmac_cipher_null() local 412 static int otx2_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_xts_setkey() 444 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey() 461 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_aes_setkey() 492 static int otx2_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_cbc_aes_setkey() 498 static int otx2_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_ecb_aes_setkey() 504 static int otx2_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_cbc_des3_setkey() 510 static int otx2_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_ecb_des3_setkey() 536 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in otx2_cpt_enc_dec_init() local 563 static void otx2_cpt_skcipher_exit(struct crypto_skcipher *tfm) in otx2_cpt_skcipher_exit() [all …]
|
/linux/arch/sparc/crypto/ |
H A D | des_glue.c | 45 static int des_set_key(struct crypto_tfm *tfm, const u8 *key, in des_set_key() 65 static int des_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des_set_key_skcipher() 74 static void sparc_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des_encrypt() 82 static void sparc_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des_decrypt() 97 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local 138 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __cbc_crypt() local 181 static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key, in des3_ede_set_key() 214 static int des3_ede_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des3_ede_set_key_skcipher() 223 static void sparc_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des3_ede_encrypt() 231 static void sparc_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in sparc_des3_ede_decrypt() [all …]
|
/linux/security/integrity/ima/ |
H A D | ima_crypto.c | 88 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() local 209 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm() 287 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm() local 307 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm() 326 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm() 437 struct crypto_ahash *tfm; in ima_calc_file_ahash() local 453 struct crypto_shash *tfm) in ima_calc_file_hash_tfm() 504 struct crypto_shash *tfm; in ima_calc_file_shash() local 660 struct crypto_ahash *tfm) in calc_buffer_ahash_atfm() 701 struct crypto_ahash *tfm; in calc_buffer_ahash() local [all …]
|