| /OK3568_Linux_fs/kernel/drivers/crypto/caam/ |
| H A D | caampkc.c | 59 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap() local 71 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap() local 83 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f2_unmap() local 100 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f3_unmap() local 150 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f_done() local 243 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_edesc_alloc() local 371 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in akcipher_do_one_req() local 396 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb() local 442 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb() local 489 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f2_pdb() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/s390/crypto/ |
| H A D | aes_s390.c | 72 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() 84 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() 105 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() 116 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() 128 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() 145 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() 175 static int setkey_fallback_skcipher(struct crypto_skcipher *tfm, const u8 *key, in setkey_fallback_skcipher() 201 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_aes_set_key() 224 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_crypt() local 254 static int fallback_init_skcipher(struct crypto_skcipher *tfm) in fallback_init_skcipher() [all …]
|
| H A D | des_s390.c | 35 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() 49 static int des_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des_setkey_skcipher() 55 static void s390_des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_encrypt() 62 static void s390_des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_decrypt() 91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_desall_crypt() local 110 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_desall_crypt() local 200 static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_setkey() 214 static int des3_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des3_setkey_skcipher() 220 static void des3_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_encrypt() 227 static void des3_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_decrypt() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | simd.c | 50 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in simd_skcipher_setkey() 64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt() local 85 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt() local 104 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit() 111 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init() 144 struct crypto_skcipher *tfm; in simd_skcipher_create_compat() local 290 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey() 302 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() 312 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() local 333 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() local [all …]
|
| H A D | lzo.c | 18 static void *lzo_alloc_ctx(struct crypto_scomp *tfm) in lzo_alloc_ctx() 29 static int lzo_init(struct crypto_tfm *tfm) in lzo_init() 40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzo_free_ctx() 45 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit() 67 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress() 75 static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, in lzo_scompress() 97 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress() 103 static int lzo_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lzo_sdecompress()
|
| 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()
|
| H A D | deflate.c | 122 static void *gen_deflate_alloc_ctx(struct crypto_scomp *tfm, int format) in gen_deflate_alloc_ctx() 140 static void *deflate_alloc_ctx(struct crypto_scomp *tfm) in deflate_alloc_ctx() 145 static void *zlib_deflate_alloc_ctx(struct crypto_scomp *tfm) in zlib_deflate_alloc_ctx() 150 static int deflate_init(struct crypto_tfm *tfm) in deflate_init() 163 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) in deflate_free_ctx() 169 static void deflate_exit(struct crypto_tfm *tfm) in deflate_exit() 205 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, in deflate_compress() 213 static int deflate_scompress(struct crypto_scomp *tfm, const u8 *src, in deflate_scompress() 261 static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, in deflate_decompress() 269 static int deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src, in deflate_sdecompress()
|
| H A D | des_generic.c | 19 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() 37 static void crypto_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_encrypt() 44 static void crypto_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_decrypt() 51 static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_setkey() 69 static void crypto_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_encrypt() 77 static void crypto_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_decrypt()
|
| H A D | shash.c | 23 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() 42 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() 63 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() 69 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() 94 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() local 124 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() local 137 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() local 165 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() local 186 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local 207 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local [all …]
|
| H A D | rsa.c | 49 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key() 56 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() local 95 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() local 156 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() 190 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() 228 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() 235 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
|
| 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() 128 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_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 231 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() local 279 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete() local 348 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt() local 381 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign() local 438 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete() local 536 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify() local [all …]
|
| H A D | algif_aead.c | 51 struct crypto_aead *tfm = aeadc->aead; in aead_sufficient_data() local 68 struct crypto_aead *tfm = aeadc->aead; in aead_sendmsg() local 97 struct crypto_aead *tfm = aeadc->aead; in _aead_recvmsg() local 381 struct aead_tfm *tfm; in aead_check_key() local 469 struct aead_tfm *tfm; in aead_bind() local 498 struct aead_tfm *tfm = private; in aead_release() local 507 struct aead_tfm *tfm = private; in aead_setauthsize() local 514 struct aead_tfm *tfm = private; in aead_setkey() local 526 struct crypto_aead *tfm = aeadc->aead; in aead_sock_destruct() local 539 struct aead_tfm *tfm = private; in aead_accept_parent_nokey() local [all …]
|
| /OK3568_Linux_fs/kernel/security/integrity/ima/ |
| H A D | ima_crypto.c | 61 struct crypto_shash *tfm; member 93 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() local 214 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm() 292 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm() local 312 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm() 331 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm() 442 struct crypto_ahash *tfm; in ima_calc_file_ahash() local 458 struct crypto_shash *tfm) in ima_calc_file_hash_tfm() 509 struct crypto_shash *tfm; in ima_calc_file_shash() local 665 struct crypto_ahash *tfm) in calc_buffer_ahash_atfm() [all …]
|
| /OK3568_Linux_fs/kernel/include/crypto/ |
| H A D | rng.h | 92 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm() 105 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg() 117 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng() 136 static inline int crypto_rng_generate(struct crypto_rng *tfm, in crypto_rng_generate() 160 static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, in crypto_rng_get_bytes() 198 static inline int crypto_rng_seedsize(struct crypto_rng *tfm) in crypto_rng_seedsize()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/crypto/ |
| H A D | aes-spe-glue.c | 92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() 119 static int ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, in ppc_aes_setkey_skcipher() 125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ppc_xts_setkey() 162 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt() 171 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt() 182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_ecb_crypt() local 221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_cbc_crypt() local 262 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_ctr_crypt() local 288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_xts_crypt() local 322 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_xts_encrypt() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 101 struct crypto_aead *tfm; in validate_hmac_cipher_null() local 237 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in create_ctx_hdr() local 392 static int otx_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_xts_setkey() 421 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey() 437 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_aes_setkey() 463 static int otx_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_cbc_aes_setkey() 469 static int otx_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_ecb_aes_setkey() 475 static int otx_cpt_skcipher_cfb_aes_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_cfb_aes_setkey() 481 static int otx_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_cbc_des3_setkey() 487 static int otx_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_ecb_des3_setkey() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/ |
| H A D | rk_crypto_v2_akcipher.c | 55 static int rk_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in rk_rsa_setkey() 106 static unsigned int rk_rsa_max_size(struct crypto_akcipher *tfm) in rk_rsa_max_size() 115 static int rk_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in rk_rsa_setpubkey() 123 static int rk_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in rk_rsa_setprivkey() 133 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rk_rsa_calc() local 256 static int rk_rsa_init_tfm(struct crypto_akcipher *tfm) in rk_rsa_init_tfm() 289 static void rk_rsa_exit_tfm(struct crypto_akcipher *tfm) in rk_rsa_exit_tfm()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | geode-aes.c | 110 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip() 136 static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in geode_setkey_skcipher() 164 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt() 179 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt() 192 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() 208 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() 238 static int geode_init_skcipher(struct crypto_skcipher *tfm) in geode_init_skcipher() 256 static void geode_exit_skcipher(struct crypto_skcipher *tfm) in geode_exit_skcipher() 265 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in geode_skcipher_crypt() local
|
| /OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-cipher.c | 72 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher_fallback() local 98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_setup_ivs() local 161 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher() local 324 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skdecrypt() local 345 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skencrypt() local 364 int sun8i_ss_cipher_init(struct crypto_tfm *tfm) in sun8i_ss_cipher_init() 409 void sun8i_ss_cipher_exit(struct crypto_tfm *tfm) in sun8i_ss_cipher_exit() 418 int sun8i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_aes_setkey() 447 int sun8i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_des3_setkey()
|
| /OK3568_Linux_fs/kernel/arch/arm64/crypto/ |
| H A D | aes-glue.c | 131 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey() 139 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm, in xts_set_key() 156 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm, in essiv_cbc_set_key() 175 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 216 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt_walk() local 245 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt_walk() local 273 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() local 330 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() local 385 static int __maybe_unused essiv_cbc_init_tfm(struct crypto_skcipher *tfm) in essiv_cbc_init_tfm() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/crypto/ |
| H A D | aesni-intel_glue.c | 282 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) in aesni_rfc4106_gcm_ctx_get() 292 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) in generic_gcmaes_ctx_get() 312 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common() 333 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() 339 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_encrypt() 352 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_decrypt() 365 static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in aesni_skcipher_setkey() 374 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 396 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 418 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local [all …]
|
| /OK3568_Linux_fs/kernel/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() 357 static int sec_alg_skcipher_setkey_3des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_ecb() 365 static int sec_alg_skcipher_setkey_3des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_cbc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ccree/ |
| H A D | cc_aead.c | 64 static void cc_aead_exit(struct crypto_aead *tfm) in cc_aead_exit() 118 static unsigned int cc_get_aead_hash_len(struct crypto_aead *tfm) in cc_get_aead_hash_len() 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 410 static int cc_get_plain_hmac_key(struct crypto_aead *tfm, const u8 *authkey, in cc_get_plain_hmac_key() 541 static int cc_aead_setkey(struct crypto_aead *tfm, const u8 *key, in cc_aead_setkey() 655 static int cc_rfc4309_ccm_setkey(struct crypto_aead *tfm, const u8 *key, in cc_rfc4309_ccm_setkey() 724 struct crypto_aead *tfm = crypto_aead_reqtfm(areq); in cc_set_assoc_desc() local 768 struct crypto_aead *tfm = crypto_aead_reqtfm(areq); in cc_proc_authen_desc() local 832 struct crypto_aead *tfm = crypto_aead_reqtfm(areq); in cc_proc_cipher_desc() local [all …]
|
| /OK3568_Linux_fs/kernel/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 421 static void ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in ctr_encrypt_one() [all …]
|