/drivers/crypto/inside-secure/ |
D | safexcel_cipher.c | 374 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aes_setkey() local 375 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_setkey() 405 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_setkey() local 406 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_setkey() 682 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_send_req() 923 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_handle_inv_result() 1004 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in safexcel_aead_handle_result() local 1015 req->cryptlen + crypto_aead_authsize(tfm), in safexcel_aead_handle_result() 1025 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_cipher_send_inv() 1043 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_skcipher_send() [all …]
|
D | safexcel_hash.c | 622 static int safexcel_ahash_exit_inv(struct crypto_tfm *tfm) in safexcel_ahash_exit_inv() argument 624 struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_ahash_exit_inv() 639 ahash_request_set_tfm(req, __crypto_ahash_cast(tfm)); in safexcel_ahash_exit_inv() 640 ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_ahash_exit_inv() 918 static int safexcel_ahash_cra_init(struct crypto_tfm *tfm) in safexcel_ahash_cra_init() argument 920 struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_ahash_cra_init() 922 container_of(__crypto_ahash_alg(tfm->__crt_alg), in safexcel_ahash_cra_init() 930 crypto_ahash_set_reqsize_dma(__crypto_ahash_cast(tfm), in safexcel_ahash_cra_init() 961 static void safexcel_ahash_cra_exit(struct crypto_tfm *tfm) in safexcel_ahash_cra_exit() argument 963 struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_ahash_cra_exit() [all …]
|
/drivers/crypto/allwinner/sun4i-ss/ |
D | sun4i-ss-cipher.c | 17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll() local 18 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_opti_poll() 20 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun4i_ss_opti_poll() 38 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun4i_ss_opti_poll() 150 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback() local 151 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cipher_poll_fallback() 154 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun4i_ss_cipher_poll_fallback() 178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll() local 179 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cipher_poll() 184 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun4i_ss_cipher_poll() [all …]
|
/drivers/crypto/intel/ixp4xx/ |
D | ixp4xx_crypto.c | 143 struct crypto_tfm *tfm; member 247 static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) in cipher_cfg_enc() argument 249 return container_of(tfm->__crt_alg, struct ixp_alg, crypto.base)->cfg_enc; in cipher_cfg_enc() 252 static inline u32 cipher_cfg_dec(struct crypto_tfm *tfm) in cipher_cfg_dec() argument 254 return container_of(tfm->__crt_alg, struct ixp_alg, crypto.base)->cfg_dec; in cipher_cfg_dec() 257 static inline const struct ix_hash_algo *ix_hash(struct crypto_tfm *tfm) in ix_hash() argument 259 return container_of(tfm->__crt_alg, struct ixp_alg, crypto.base)->hash; in ix_hash() 355 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in finish_scattered_hmac() local 356 int authsize = crypto_aead_authsize(tfm); in finish_scattered_hmac() 393 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in one_packet() local [all …]
|
/drivers/crypto/cavium/zip/ |
D | zip_crypto.h | 60 int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm); 61 int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm); 62 void zip_free_comp_ctx(struct crypto_tfm *tfm); 63 int zip_comp_compress(struct crypto_tfm *tfm, 66 int zip_comp_decompress(struct crypto_tfm *tfm, 70 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm); 71 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm); 72 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *zip_ctx); 73 int zip_scomp_compress(struct crypto_scomp *tfm, 76 int zip_scomp_decompress(struct crypto_scomp *tfm,
|
D | zip_crypto.c | 199 int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm) in zip_alloc_comp_ctx_deflate() argument 201 struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); in zip_alloc_comp_ctx_deflate() 206 int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm) in zip_alloc_comp_ctx_lzs() argument 208 struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); in zip_alloc_comp_ctx_lzs() 213 void zip_free_comp_ctx(struct crypto_tfm *tfm) in zip_free_comp_ctx() argument 215 struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); in zip_free_comp_ctx() 220 int zip_comp_compress(struct crypto_tfm *tfm, in zip_comp_compress() argument 224 struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); in zip_comp_compress() 229 int zip_comp_decompress(struct crypto_tfm *tfm, in zip_comp_decompress() argument 233 struct zip_kernel_ctx *zip_ctx = crypto_tfm_ctx(tfm); in zip_comp_decompress() [all …]
|
/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-cipher.c | 26 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_need_fallback() local 28 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_need_fallback() 40 if (areq->cryptlen < crypto_skcipher_ivsize(tfm)) { in sun8i_ce_cipher_need_fallback() 91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_fallback() local 92 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_cipher_fallback() 97 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_fallback() 123 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_prepare() local 124 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_cipher_prepare() 127 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_prepare() 144 crypto_tfm_alg_name(areq->base.tfm), in sun8i_ce_cipher_prepare() [all …]
|
D | sun8i-ce-hash.c | 26 int sun8i_ce_hash_init_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_init_tfm() argument 28 struct sun8i_ce_hash_tfm_ctx *op = crypto_ahash_ctx(tfm); in sun8i_ce_hash_init_tfm() 29 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_init_tfm() 37 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0, in sun8i_ce_hash_init_tfm() 44 crypto_ahash_set_statesize(tfm, in sun8i_ce_hash_init_tfm() 47 crypto_ahash_set_reqsize(tfm, in sun8i_ce_hash_init_tfm() 64 void sun8i_ce_hash_exit_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_exit_tfm() argument 66 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_exit_tfm() 75 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_init() local 76 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_init() [all …]
|
/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 47 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_ahash_digest_fb() local 48 struct rk_ahash_ctx *tfmctx = crypto_ahash_ctx(tfm); in rk_ahash_digest_fb() 49 struct ahash_alg *alg = crypto_ahash_alg(tfm); in rk_ahash_digest_fb() 67 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process() local 68 int rk_digest_size = crypto_ahash_digestsize(tfm); in zero_message_process() 123 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init() local 124 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_init() 136 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update() local 137 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm); in rk_ahash_update() 151 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final() local [all …]
|
/drivers/crypto/vmx/ |
D | aes.c | 28 static int p8_aes_init(struct crypto_tfm *tfm) in p8_aes_init() argument 30 const char *alg = crypto_tfm_alg_name(tfm); in p8_aes_init() 32 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_init() 45 tfm)); in p8_aes_init() 51 static void p8_aes_exit(struct crypto_tfm *tfm) in p8_aes_exit() argument 53 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_exit() 61 static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_setkey() argument 65 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_setkey() 81 static void p8_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_encrypt() argument 83 struct p8_aes_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_encrypt() [all …]
|
D | aes_cbc.c | 24 static int p8_aes_cbc_init(struct crypto_skcipher *tfm) in p8_aes_cbc_init() argument 26 struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_cbc_init() 38 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in p8_aes_cbc_init() 44 static void p8_aes_cbc_exit(struct crypto_skcipher *tfm) in p8_aes_cbc_exit() argument 46 struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_cbc_exit() 51 static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_cbc_setkey() argument 54 struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_cbc_setkey() 73 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_cbc_crypt() local 74 const struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_cbc_crypt()
|
D | aes_xts.c | 26 static int p8_aes_xts_init(struct crypto_skcipher *tfm) in p8_aes_xts_init() argument 28 struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_xts_init() 40 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in p8_aes_xts_init() 46 static void p8_aes_xts_exit(struct crypto_skcipher *tfm) in p8_aes_xts_exit() argument 48 struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_xts_exit() 53 static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_xts_setkey() argument 56 struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_xts_setkey() 59 ret = xts_verify_key(tfm, key, keylen); in p8_aes_xts_setkey() 80 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_xts_crypt() local 81 const struct p8_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in p8_aes_xts_crypt()
|
/drivers/crypto/ |
D | geode-aes.c | 110 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip() argument 113 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in geode_setkey_cip() 131 (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_cip() 136 static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in geode_setkey_skcipher() argument 139 struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in geode_setkey_skcipher() 158 crypto_skcipher_get_flags(tfm) & in geode_setkey_skcipher() 164 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt() argument 166 const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in geode_encrypt() 179 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt() argument 181 const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in geode_decrypt() [all …]
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-cipher.c | 25 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_need_fallback() local 26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_need_fallback() 91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher_fallback() local 92 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_cipher_fallback() 97 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher_fallback() 122 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_setup_ivs() local 123 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_setup_ivs() 129 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ss_setup_ivs() 185 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher() local 186 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_cipher() [all …]
|
D | sun8i-ss-hash.c | 47 sdesc->tfm = xtfm; in sun8i_ss_hashkey() 112 int sun8i_ss_hash_init_tfm(struct crypto_ahash *tfm) in sun8i_ss_hash_init_tfm() argument 114 struct sun8i_ss_hash_tfm_ctx *op = crypto_ahash_ctx(tfm); in sun8i_ss_hash_init_tfm() 115 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_init_tfm() 123 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0, in sun8i_ss_hash_init_tfm() 130 crypto_ahash_set_statesize(tfm, in sun8i_ss_hash_init_tfm() 133 crypto_ahash_set_reqsize(tfm, in sun8i_ss_hash_init_tfm() 150 void sun8i_ss_hash_exit_tfm(struct crypto_ahash *tfm) in sun8i_ss_hash_exit_tfm() argument 152 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ss_hash_exit_tfm() 164 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_init() local [all …]
|
/drivers/crypto/gemini/ |
D | sl3516-ce-cipher.c | 27 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_need_fallback() local 28 struct sl3516_ce_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sl3516_ce_need_fallback() 105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_cipher_fallback() local 106 struct sl3516_ce_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sl3516_ce_cipher_fallback() 108 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sl3516_ce_cipher_fallback() 129 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_cipher() local 130 struct sl3516_ce_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sl3516_ce_cipher() 133 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sl3516_ce_cipher() 146 crypto_tfm_alg_name(areq->base.tfm), in sl3516_ce_cipher() 148 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm), in sl3516_ce_cipher() [all …]
|
/drivers/crypto/amlogic/ |
D | amlogic-gxl-cipher.c | 60 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_cipher_do_fallback() local 61 struct meson_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in meson_cipher_do_fallback() 65 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in meson_cipher_do_fallback() 86 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_cipher() local 87 struct meson_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in meson_cipher() 90 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in meson_cipher() 107 crypto_tfm_alg_name(areq->base.tfm), in meson_cipher() 109 rctx->op_dir, crypto_skcipher_ivsize(tfm), in meson_cipher() 129 ivsize = crypto_skcipher_ivsize(tfm); in meson_cipher() 276 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_skdecrypt() local [all …]
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_algs.c | 102 struct crypto_aead *tfm; in validate_hmac_cipher_null() local 105 tfm = crypto_aead_reqtfm(req); in validate_hmac_cipher_null() 109 crypto_aead_authsize(tfm)) != 0) in validate_hmac_cipher_null() 238 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in create_ctx_hdr() local 239 struct otx_cpt_enc_ctx *ctx = crypto_tfm_ctx(tfm); in create_ctx_hdr() 393 static int otx_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_xts_setkey() argument 396 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in otx_cpt_skcipher_xts_setkey() 401 ret = xts_verify_key(tfm, key, keylen); in otx_cpt_skcipher_xts_setkey() 422 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey() argument 425 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in cpt_des_setkey() [all …]
|
/drivers/crypto/chelsio/ |
D | chcr_algo.c | 174 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_verify_tag() local 175 int authsize = crypto_aead_authsize(tfm); in chcr_verify_tag() 180 if ((get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_RFC4106) || in chcr_verify_tag() 181 (get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_GCM)) { in chcr_verify_tag() 214 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in chcr_handle_aead_resp() local 215 struct chcr_dev *dev = a_ctx(tfm)->dev; in chcr_handle_aead_resp() 364 static inline int is_hmac(struct crypto_tfm *tfm) in is_hmac() argument 366 struct crypto_alg *alg = tfm->__crt_alg; in is_hmac() 566 static inline int get_cryptoalg_subtype(struct crypto_skcipher *tfm) in get_cryptoalg_subtype() argument 568 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in get_cryptoalg_subtype() [all …]
|
/drivers/crypto/caam/ |
D | caampkc.c | 65 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap() local 66 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in rsa_pub_unmap() 77 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap() local 78 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in rsa_priv_f1_unmap() 89 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f2_unmap() local 90 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in rsa_priv_f2_unmap() 106 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f3_unmap() local 107 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in rsa_priv_f3_unmap() 156 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f_done() local 158 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in rsa_priv_f_done() [all …]
|
/drivers/crypto/hisilicon/sec/ |
D | sec_algs.c | 147 struct crypto_tfm *tfm = crypto_skcipher_tfm(atfm); in sec_alg_skcipher_init_context() local 148 struct sec_alg_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in sec_alg_skcipher_init_context() 227 static int sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey() argument 231 struct sec_alg_tfm_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_alg_skcipher_setkey() 248 sec_alg_skcipher_init_context(tfm, key, keylen, alg); 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() argument 272 return sec_alg_skcipher_setkey(tfm, key, keylen, alg); 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() argument 294 return sec_alg_skcipher_setkey(tfm, key, keylen, alg); 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() argument [all …]
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_algs.c | 86 struct crypto_aead *tfm; in validate_hmac_cipher_null() local 89 tfm = crypto_aead_reqtfm(req); in validate_hmac_cipher_null() 93 crypto_aead_authsize(tfm)) != 0) in validate_hmac_cipher_null() 407 static int otx2_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx2_cpt_skcipher_xts_setkey() argument 410 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in otx2_cpt_skcipher_xts_setkey() 415 ret = xts_verify_key(tfm, key, keylen); in otx2_cpt_skcipher_xts_setkey() 439 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey() argument 442 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in cpt_des_setkey() 456 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_aes_setkey() argument 459 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in cpt_aes_setkey() [all …]
|
/drivers/crypto/intel/qat/qat_common/ |
D | qat_algs.c | 125 shash->tfm = ctx->hash_tfm; in qat_alg_do_precomputes() 546 static int qat_alg_aead_init_sessions(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_init_sessions() argument 558 if (qat_alg_aead_init_enc_session(tfm, alg, &keys, mode)) in qat_alg_aead_init_sessions() 561 if (qat_alg_aead_init_dec_session(tfm, alg, &keys, mode)) in qat_alg_aead_init_sessions() 589 static int qat_alg_aead_rekey(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_rekey() argument 592 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); in qat_alg_aead_rekey() 599 return qat_alg_aead_init_sessions(tfm, key, keylen, in qat_alg_aead_rekey() 603 static int qat_alg_aead_newkey(struct crypto_aead *tfm, const u8 *key, in qat_alg_aead_newkey() argument 606 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); in qat_alg_aead_newkey() 632 ret = qat_alg_aead_init_sessions(tfm, key, keylen, in qat_alg_aead_newkey() [all …]
|
/drivers/crypto/ccp/ |
D | ccp-crypto-rsa.c | 57 static unsigned int ccp_rsa_maxsize(struct crypto_akcipher *tfm) in ccp_rsa_maxsize() argument 59 struct ccp_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in ccp_rsa_maxsize() 66 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ccp_rsa_crypt() local 67 struct ccp_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in ccp_rsa_crypt() 126 static int ccp_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setkey() argument 129 struct ccp_ctx *ctx = akcipher_tfm_ctx_dma(tfm); in ccp_rsa_setkey() 181 static int ccp_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setprivkey() argument 184 return ccp_rsa_setkey(tfm, key, keylen, true); in ccp_rsa_setprivkey() 187 static int ccp_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setpubkey() argument 190 return ccp_rsa_setkey(tfm, key, keylen, false); in ccp_rsa_setpubkey() [all …]
|
D | ccp-crypto-aes.c | 38 static int ccp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_setkey() argument 41 struct ccp_crypto_skcipher_alg *alg = ccp_crypto_skcipher_alg(tfm); in ccp_aes_setkey() 42 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_setkey() 68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_crypt() local 69 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_crypt() 120 static int ccp_aes_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_init_tfm() argument 122 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_init_tfm() 127 crypto_skcipher_set_reqsize(tfm, sizeof(struct ccp_aes_req_ctx)); in ccp_aes_init_tfm() 144 static int ccp_aes_rfc3686_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_rfc3686_setkey() argument 147 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in ccp_aes_rfc3686_setkey() [all …]
|