| /OK3568_Linux_fs/kernel/include/crypto/ |
| H A D | acompress.h | 128 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() 138 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() 143 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) in crypto_acomp_alg() 148 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) in crypto_acomp_reqsize() 154 struct crypto_acomp *tfm) in acomp_request_set_tfm() 171 static inline void crypto_free_acomp(struct crypto_acomp *tfm) in crypto_free_acomp() 263 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_compress() local 285 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_decompress() local
|
| /OK3568_Linux_fs/kernel/drivers/crypto/vmx/ |
| H A D | aes.c | 28 static int p8_aes_init(struct crypto_tfm *tfm) in p8_aes_init() 51 static void p8_aes_exit(struct crypto_tfm *tfm) in p8_aes_exit() 61 static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_setkey() 81 static void p8_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_encrypt() 98 static void p8_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_decrypt()
|
| /OK3568_Linux_fs/kernel/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
|
| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/ |
| H A D | rk_crypto_v1_skcipher.c | 22 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_alg_ctx_cast() local 145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_cipher_encrypt() local 165 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_cipher_decrypt() local 190 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_ablk_hw_init() local 245 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_set_data_start() local 293 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_iv_copyback() local 314 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_update_iv() local 369 static int rk_ablk_init_tfm(struct crypto_skcipher *tfm) in rk_ablk_init_tfm() 400 static void rk_ablk_exit_tfm(struct crypto_skcipher *tfm) in rk_ablk_exit_tfm()
|
| /OK3568_Linux_fs/kernel/crypto/ |
| 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 | cipher.c | 20 static int setkey_unaligned(struct crypto_cipher *tfm, const u8 *key, in setkey_unaligned() 43 int crypto_cipher_setkey(struct crypto_cipher *tfm, in crypto_cipher_setkey() 59 static inline void cipher_crypt_one(struct crypto_cipher *tfm, in cipher_crypt_one() 80 void crypto_cipher_encrypt_one(struct crypto_cipher *tfm, in crypto_cipher_encrypt_one() 87 void crypto_cipher_decrypt_one(struct crypto_cipher *tfm, in crypto_cipher_decrypt_one()
|
| 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 | ahash.c | 137 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned() 157 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey() 163 static void ahash_set_needkey(struct crypto_ahash *tfm) in ahash_set_needkey() 172 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey() 201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req() local 331 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op() local 342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_final() local 356 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_finup() local 370 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_digest() local 433 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_def_finup() local [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()
|
| 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 | skcipher.c | 452 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_skcipher() local 514 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_common() local 565 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_decrypt() local 573 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey() 579 static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm, in skcipher_setkey_unaligned() 600 int crypto_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_skcipher_setkey() 627 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_encrypt() local 644 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_decrypt() local 659 static void crypto_skcipher_exit_tfm(struct crypto_tfm *tfm) in crypto_skcipher_exit_tfm() 667 static int crypto_skcipher_init_tfm(struct crypto_tfm *tfm) in crypto_skcipher_init_tfm() [all …]
|
| /OK3568_Linux_fs/kernel/arch/s390/crypto/ |
| H A D | paes_s390.c | 153 static int ecb_paes_init(struct crypto_skcipher *tfm) in ecb_paes_init() 163 static void ecb_paes_exit(struct crypto_skcipher *tfm) in ecb_paes_exit() 188 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_paes_set_key() 204 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_paes_crypt() local 266 static int cbc_paes_init(struct crypto_skcipher *tfm) in cbc_paes_init() 276 static void cbc_paes_exit(struct crypto_skcipher *tfm) in cbc_paes_exit() 301 static int cbc_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in cbc_paes_set_key() 317 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_paes_crypt() local 384 static int xts_paes_init(struct crypto_skcipher *tfm) in xts_paes_init() 395 static void xts_paes_exit(struct crypto_skcipher *tfm) in xts_paes_exit() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/crypto/ |
| H A D | ghash-ce-glue.c | 156 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() 201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local 215 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 233 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local 250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local 272 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_import() local 289 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() 301 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm() 317 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm()
|
| /OK3568_Linux_fs/kernel/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 277 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_skdecrypt() local 295 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_skencrypt() local 311 int meson_cipher_init(struct crypto_tfm *tfm) in meson_cipher_init() 341 void meson_cipher_exit(struct crypto_tfm *tfm) in meson_cipher_exit() 349 int meson_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in meson_aes_setkey()
|
| /OK3568_Linux_fs/kernel/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()
|
| H A D | ccp-crypto-sha.c | 29 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete() local 60 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update() local 183 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init() local 271 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey() 313 static int ccp_sha_cra_init(struct crypto_tfm *tfm) in ccp_sha_cra_init() 326 static void ccp_sha_cra_exit(struct crypto_tfm *tfm) in ccp_sha_cra_exit() 330 static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_init() 348 static void ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_exit()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | ixp4xx_crypto.c | 143 struct crypto_tfm *tfm; member 243 static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) in cipher_cfg_enc() 248 static inline u32 cipher_cfg_dec(struct crypto_tfm *tfm) in cipher_cfg_dec() 253 static inline const struct ix_hash_algo *ix_hash(struct crypto_tfm *tfm) in ix_hash() 348 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in finish_scattered_hmac() local 386 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in one_packet() local 575 static int init_tfm(struct crypto_tfm *tfm) in init_tfm() 591 static int init_tfm_ablk(struct crypto_skcipher *tfm) in init_tfm_ablk() 597 static int init_tfm_aead(struct crypto_aead *tfm) in init_tfm_aead() 603 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/chelsio/ |
| H A D | chcr_algo.c | 178 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_verify_tag() local 218 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_handle_aead_resp() local 368 static inline int is_hmac(struct crypto_tfm *tfm) in is_hmac() 570 static inline int get_cryptoalg_subtype(struct crypto_skcipher *tfm) in get_cryptoalg_subtype() 717 struct crypto_tfm *tfm = req->tfm; in get_qidxs() local 807 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(wrparam->req); in create_cipher_wr() local 1064 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chcr_update_tweak() local 1105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chcr_update_cipher_iv() local 1139 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chcr_final_cipher_iv() local 1167 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chcr_handle_cipher_resp() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/crypto/ |
| H A D | ghash-clmulni-intel_glue.c | 53 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() 162 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local 176 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local 194 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final() local 234 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest() local 253 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() 265 static int ghash_async_init_tfm(struct crypto_tfm *tfm) in ghash_async_init_tfm() 283 static void ghash_async_exit_tfm(struct crypto_tfm *tfm) in ghash_async_exit_tfm()
|
| H A D | des3_ede_glue.c | 66 static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_encrypt() 71 static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_ede_x86_decrypt() 122 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local 130 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local 161 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local 240 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local 323 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_crypt() local 344 static int des3_ede_x86_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_x86_setkey() 378 static int des3_ede_x86_setkey_skcipher(struct crypto_skcipher *tfm, in des3_ede_x86_setkey_skcipher()
|
| /OK3568_Linux_fs/kernel/net/mac80211/ |
| H A D | aes_cmac.c | 24 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() 48 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() 73 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup() local 82 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) in ieee80211_aes_cmac_key_free()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/nx/ |
| H A D | nx-aes-ctr.c | 22 static int ctr_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr_aes_nx_set_key() 54 static int ctr3686_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr3686_aes_nx_set_key() 74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_aes_nx_crypt() local 117 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr3686_aes_nx_crypt() local
|
| H A D | nx.c | 694 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_ccm_init() 701 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_gcm_init() 708 int nx_crypto_ctx_aes_ctr_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_ctr_init() 714 int nx_crypto_ctx_aes_cbc_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_cbc_init() 720 int nx_crypto_ctx_aes_ecb_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_ecb_init() 726 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init() 731 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init() 745 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit() 756 void nx_crypto_ctx_skcipher_exit(struct crypto_skcipher *tfm) in nx_crypto_ctx_skcipher_exit() 761 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) in nx_crypto_ctx_aead_exit()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/ |
| H A D | qat_algs.c | 498 static int qat_alg_aead_init_sessions(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_init_sessions() 541 static int qat_alg_aead_rekey(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_rekey() 555 static int qat_alg_aead_newkey(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_newkey() 607 static int qat_alg_aead_setkey(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_setkey() 848 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_dec() local 895 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_enc() local 1003 static int qat_alg_skcipher_setkey(struct crypto_skcipher *tfm, in qat_alg_skcipher_setkey() 1015 static int qat_alg_skcipher_cbc_setkey(struct crypto_skcipher *tfm, in qat_alg_skcipher_cbc_setkey() 1022 static int qat_alg_skcipher_ctr_setkey(struct crypto_skcipher *tfm, in qat_alg_skcipher_ctr_setkey() 1029 static int qat_alg_skcipher_xts_setkey(struct crypto_skcipher *tfm, in qat_alg_skcipher_xts_setkey() [all …]
|