/drivers/crypto/rockchip/ |
D | rk3288_crypto_ablkcipher.c | 52 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in rk_aes_setkey() local 68 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in rk_tdes_setkey() local 92 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_aes_ecb_encrypt() local 102 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_aes_ecb_decrypt() local 112 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_aes_cbc_encrypt() local 122 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_aes_cbc_decrypt() local 132 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_des_ecb_encrypt() local 142 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_des_ecb_decrypt() local 152 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_des_cbc_encrypt() local 162 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in rk_des_cbc_decrypt() local [all …]
|
D | rk3288_crypto_ahash.c | 23 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process() local 83 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init() local 96 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update() local 111 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final() local 125 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup() local 142 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import() local 155 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export() local 167 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_digest() local 274 static int rk_cra_hash_init(struct crypto_tfm *tfm) in rk_cra_hash_init() 308 static void rk_cra_hash_exit(struct crypto_tfm *tfm) in rk_cra_hash_exit()
|
/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-cipher.c | 21 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_opti_poll() local 129 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cipher_poll() local 322 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() local 333 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() local 345 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() local 356 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() local 368 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() local 379 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() local 391 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() local 402 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(areq); in sun4i_ss_ecb_des_decrypt() local [all …]
|
/drivers/crypto/caam/ |
D | caampkc.c | 36 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap() local 48 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap() local 96 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_edesc_alloc() local 175 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb() local 220 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb() local 263 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in caam_rsa_enc() local 306 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in caam_rsa_dec() local 394 static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in caam_rsa_set_pub_key() 440 static int caam_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in caam_rsa_set_priv_key() 493 static int caam_rsa_max_size(struct crypto_akcipher *tfm) in caam_rsa_max_size() [all …]
|
/drivers/crypto/ |
D | geode-aes.c | 116 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip() 149 static int geode_setkey_blk(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_blk() 187 struct crypto_blkcipher *tfm; in fallback_blk_dec() local 203 struct crypto_blkcipher *tfm; in fallback_blk_enc() local 216 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt() 237 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt() 256 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() 272 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() 366 static int fallback_init_blk(struct crypto_tfm *tfm) in fallback_init_blk() 382 static void fallback_exit_blk(struct crypto_tfm *tfm) in fallback_exit_blk()
|
D | ixp4xx_crypto.c | 147 struct crypto_tfm *tfm; member 245 static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) in cipher_cfg_enc() 250 static inline u32 cipher_cfg_dec(struct crypto_tfm *tfm) in cipher_cfg_dec() 255 static inline const struct ix_hash_algo *ix_hash(struct crypto_tfm *tfm) in ix_hash() 350 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in finish_scattered_hmac() local 564 static int init_tfm(struct crypto_tfm *tfm) in init_tfm() 580 static int init_tfm_ablk(struct crypto_tfm *tfm) in init_tfm_ablk() 586 static int init_tfm_aead(struct crypto_aead *tfm) in init_tfm_aead() 592 static void exit_tfm(struct crypto_tfm *tfm) in exit_tfm() 599 static void exit_tfm_aead(struct crypto_aead *tfm) in exit_tfm_aead() [all …]
|
D | img-hash.c | 486 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_init() local 551 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_update() local 566 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_final() local 580 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_finup() local 596 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_import() local 609 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_export() local 621 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest() local 675 static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name) in img_hash_cra_init() 698 static int img_hash_cra_md5_init(struct crypto_tfm *tfm) in img_hash_cra_md5_init() 703 static int img_hash_cra_sha1_init(struct crypto_tfm *tfm) in img_hash_cra_sha1_init() [all …]
|
D | n2_core.c | 253 static inline struct n2_ahash_alg *n2_ahash_alg(struct crypto_tfm *tfm) in n2_ahash_alg() 268 static inline struct n2_hmac_alg *n2_hmac_alg(struct crypto_tfm *tfm) in n2_hmac_alg() 306 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init() local 318 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update() local 332 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final() local 345 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup() local 357 static int n2_hash_cra_init(struct crypto_tfm *tfm) in n2_hash_cra_init() 384 static void n2_hash_cra_exit(struct crypto_tfm *tfm) in n2_hash_cra_exit() 392 static int n2_hmac_cra_init(struct crypto_tfm *tfm) in n2_hmac_cra_init() 433 static void n2_hmac_cra_exit(struct crypto_tfm *tfm) in n2_hmac_cra_exit() [all …]
|
D | mxs-dcp.c | 377 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in mxs_dcp_block_fallback() local 441 static int mxs_dcp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in mxs_dcp_aes_setkey() 478 static int mxs_dcp_aes_fallback_init(struct crypto_tfm *tfm) in mxs_dcp_aes_fallback_init() 494 static void mxs_dcp_aes_fallback_exit(struct crypto_tfm *tfm) in mxs_dcp_aes_fallback_exit() 509 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mxs_dcp_run_sha() local 559 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_req_to_buf() local 673 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_init() local 703 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_update_fx() local 762 static int dcp_sha_cra_init(struct crypto_tfm *tfm) in dcp_sha_cra_init() 769 static void dcp_sha_cra_exit(struct crypto_tfm *tfm) in dcp_sha_cra_exit()
|
/drivers/crypto/vmx/ |
D | aes.c | 38 static int p8_aes_init(struct crypto_tfm *tfm) in p8_aes_init() 68 static void p8_aes_exit(struct crypto_tfm *tfm) in p8_aes_exit() 78 static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_setkey() 97 static void p8_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_encrypt() 114 static void p8_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_decrypt()
|
D | aes_ctr.c | 37 static int p8_aes_ctr_init(struct crypto_tfm *tfm) in p8_aes_ctr_init() 67 static void p8_aes_ctr_exit(struct crypto_tfm *tfm) in p8_aes_ctr_exit() 77 static int p8_aes_ctr_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_ctr_setkey()
|
D | aes_cbc.c | 39 static int p8_aes_cbc_init(struct crypto_tfm *tfm) in p8_aes_cbc_init() 69 static void p8_aes_cbc_exit(struct crypto_tfm *tfm) in p8_aes_cbc_exit() 79 static int p8_aes_cbc_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_cbc_setkey()
|
D | aes_xts.c | 41 static int p8_aes_xts_init(struct crypto_tfm *tfm) in p8_aes_xts_init() 71 static void p8_aes_xts_exit(struct crypto_tfm *tfm) in p8_aes_xts_exit() 81 static int p8_aes_xts_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_xts_setkey()
|
D | ghash.c | 53 static int p8_ghash_init_tfm(struct crypto_tfm *tfm) in p8_ghash_init_tfm() 89 static void p8_ghash_exit_tfm(struct crypto_tfm *tfm) in p8_ghash_exit_tfm() 111 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, in p8_ghash_setkey()
|
/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete() local 61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update() local 178 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init() local 266 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey() 317 static int ccp_sha_cra_init(struct crypto_tfm *tfm) in ccp_sha_cra_init() 330 static void ccp_sha_cra_exit(struct crypto_tfm *tfm) in ccp_sha_cra_exit() 334 static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_init() 352 static void ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_exit()
|
D | ccp-crypto-aes.c | 40 static int ccp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_setkey() 127 static int ccp_aes_cra_init(struct crypto_tfm *tfm) in ccp_aes_cra_init() 139 static void ccp_aes_cra_exit(struct crypto_tfm *tfm) in ccp_aes_cra_exit() 155 static int ccp_aes_rfc3686_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_rfc3686_setkey() 202 static int ccp_aes_rfc3686_cra_init(struct crypto_tfm *tfm) in ccp_aes_rfc3686_cra_init() 214 static void ccp_aes_rfc3686_cra_exit(struct crypto_tfm *tfm) in ccp_aes_rfc3686_cra_exit()
|
D | ccp-crypto-aes-cmac.c | 30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_aes_cmac_complete() local 61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_cmac_update() local 259 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey() 338 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_init() 361 static void ccp_aes_cmac_cra_exit(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_exit()
|
D | ccp-crypto-aes-xts.c | 97 static int ccp_aes_xts_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in ccp_aes_xts_setkey() 195 static int ccp_aes_xts_cra_init(struct crypto_tfm *tfm) in ccp_aes_xts_cra_init() 217 static void ccp_aes_xts_cra_exit(struct crypto_tfm *tfm) in ccp_aes_xts_cra_exit()
|
/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 125 struct crypto_tfm *tfm; member 530 static int qat_alg_aead_init_sessions(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_init_sessions() 574 static int qat_alg_aead_setkey(struct crypto_aead *tfm, const uint8_t *key, in qat_alg_aead_setkey() 817 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_dec() local 859 struct crypto_tfm *tfm = crypto_aead_tfm(aead_tfm); in qat_alg_aead_enc() local 901 static int qat_alg_ablkcipher_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_setkey() 962 static int qat_alg_ablkcipher_cbc_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_cbc_setkey() 969 static int qat_alg_ablkcipher_ctr_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_ctr_setkey() 976 static int qat_alg_ablkcipher_xts_setkey(struct crypto_ablkcipher *tfm, in qat_alg_ablkcipher_xts_setkey() 986 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(atfm); in qat_alg_ablkcipher_encrypt() local [all …]
|
D | qat_asym_algs.c | 252 static inline struct qat_dh_ctx *qat_dh_get_params(struct crypto_kpp *tfm) in qat_dh_get_params() 259 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_compute_value() local 494 static int qat_dh_set_secret(struct crypto_kpp *tfm, void *buf, in qat_dh_set_secret() 524 static int qat_dh_max_size(struct crypto_kpp *tfm) in qat_dh_max_size() 531 static int qat_dh_init_tfm(struct crypto_kpp *tfm) in qat_dh_init_tfm() 546 static void qat_dh_exit_tfm(struct crypto_kpp *tfm) in qat_dh_exit_tfm() 690 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc() local 824 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec() local 1200 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey() 1247 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey() [all …]
|
/drivers/crypto/nx/ |
D | nx.c | 708 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_ccm_init() 715 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_gcm_init() 722 int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ctr_init() 728 int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_cbc_init() 734 int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ecb_init() 740 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init() 745 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init() 759 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit() 770 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) in nx_crypto_ctx_aead_exit()
|
/drivers/crypto/chelsio/ |
D | chcr_algo.c | 104 struct crypto_tfm *tfm = req->tfm; in chcr_handle_resp() local 276 static inline int is_hmac(struct crypto_tfm *tfm) in is_hmac() 356 static inline int get_cryptoalg_subtype(struct crypto_tfm *tfm) in get_cryptoalg_subtype() 462 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in create_cipher_wr() local 555 static int chcr_aes_cbc_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in chcr_aes_cbc_setkey() 611 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in chcr_aes_encrypt() local 638 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in chcr_aes_decrypt() local 688 static int chcr_cra_init(struct crypto_tfm *tfm) in chcr_cra_init() 760 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in create_final_hash_wr() local 1067 static int chcr_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in chcr_ahash_setkey() [all …]
|
/drivers/crypto/ux500/hash/ |
D | hash_core.c | 550 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_init() local 855 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_dma_final() local 961 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_final() local 1068 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_update() local 1330 static int hash_setkey(struct crypto_ahash *tfm, in hash_setkey() 1352 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha1_init() local 1365 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha256_init() local 1408 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha1_init() local 1421 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha256_init() local 1462 static int hmac_sha1_setkey(struct crypto_ahash *tfm, in hmac_sha1_setkey() [all …]
|
/drivers/crypto/qce/ |
D | ablkcipher.c | 163 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablk); in qce_ablkcipher_setkey() local 203 struct crypto_tfm *tfm = in qce_ablkcipher_crypt() local 241 static int qce_ablkcipher_init(struct crypto_tfm *tfm) in qce_ablkcipher_init() 257 static void qce_ablkcipher_exit(struct crypto_tfm *tfm) in qce_ablkcipher_exit()
|
/drivers/block/ |
D | cryptoloop.c | 49 struct crypto_skcipher *tfm; in cryptoloop_init() local 114 struct crypto_skcipher *tfm = lo->key_data; in cryptoloop_transfer() local 180 struct crypto_skcipher *tfm = lo->key_data; in cryptoloop_release() local
|