| /linux/include/crypto/ |
| H A D | aead.h | 140 int (*setkey)(struct crypto_aead *tfm, const u8 *key, 142 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize); 145 int (*init)(struct crypto_aead *tfm); 146 void (*exit)(struct crypto_aead *tfm); 173 (((struct aead_request *)__##name##_desc)->base.tfm = \ 177 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() argument 179 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast() 200 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() argument 202 return &tfm->base; in crypto_aead_tfm() 205 static inline struct crypto_tfm *crypto_sync_aead_tfm(struct crypto_sync_aead *tfm) in crypto_sync_aead_tfm() argument [all …]
|
| H A D | kpp.h | 78 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer, 83 unsigned int (*max_size)(struct crypto_kpp *tfm); 85 int (*init)(struct crypto_kpp *tfm); 86 void (*exit)(struct crypto_kpp *tfm); 114 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() argument 116 return &tfm->base; in crypto_kpp_tfm() 124 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() argument 126 return container_of(tfm, struct crypto_kpp, base); in __crypto_kpp_tfm() 129 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() argument 131 return __crypto_kpp_alg(crypto_kpp_tfm(tfm)->__crt_alg); in crypto_kpp_alg() [all …]
|
| /linux/security/integrity/ima/ |
| H A D | ima_crypto.c | 52 struct crypto_shash *tfm = ima_shash_tfm; 59 return tfm; 62 if (ima_algo_array[i].tfm && ima_algo_array[i].algo == algo) 63 return ima_algo_array[i].tfm; 65 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); 66 if (IS_ERR(tfm)) { 67 rc = PTR_ERR(tfm); 71 return tfm; in ima_init_ima_crypto() 124 ima_algo_array[i].tfm = ima_shash_tfm; in ima_init_crypto() 128 ima_algo_array[i].tfm in ima_init_crypto() 88 struct crypto_shash *tfm = ima_shash_tfm; ima_alloc_tfm() local 209 ima_free_tfm(struct crypto_shash * tfm) ima_free_tfm() argument 287 struct crypto_ahash *tfm = ima_ahash_tfm; ima_alloc_atfm() local 307 ima_free_atfm(struct crypto_ahash * tfm) ima_free_atfm() argument 326 ima_calc_file_hash_atfm(struct file * file,struct ima_digest_data * hash,struct crypto_ahash * tfm) ima_calc_file_hash_atfm() argument 437 struct crypto_ahash *tfm; ima_calc_file_ahash() local 453 ima_calc_file_hash_tfm(struct file * file,struct ima_digest_data * hash,struct crypto_shash * tfm) ima_calc_file_hash_tfm() argument 504 struct crypto_shash *tfm; ima_calc_file_shash() local 660 calc_buffer_ahash_atfm(const void * buf,loff_t len,struct ima_digest_data * hash,struct crypto_ahash * tfm) calc_buffer_ahash_atfm() argument 701 struct crypto_ahash *tfm; calc_buffer_ahash() local 717 calc_buffer_shash_tfm(const void * buf,loff_t size,struct ima_digest_data * hash,struct crypto_shash * tfm) calc_buffer_shash_tfm() argument 748 struct crypto_shash *tfm; calc_buffer_shash() local 796 ima_calc_boot_aggregate_tfm(char * digest,u16 alg_id,struct crypto_shash * tfm) ima_calc_boot_aggregate_tfm() argument 841 struct crypto_shash *tfm; ima_calc_boot_aggregate() 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() argument 39 return (struct crypto_cipher *)tfm; in __crypto_cipher_cast() 66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) in crypto_cipher_tfm() argument 68 return &tfm->base; in crypto_cipher_tfm() 75 static inline void crypto_free_cipher(struct crypto_cipher *tfm) in crypto_free_cipher() argument 77 crypto_free_tfm(crypto_cipher_tfm(tfm)); in crypto_free_cipher() 109 static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm) in crypto_cipher_blocksize() argument 111 return crypto_tfm_alg_blocksize(crypto_cipher_tfm(tfm)); in crypto_cipher_blocksize() 114 static inline unsigned int crypto_cipher_alignmask(struct crypto_cipher *tfm) in crypto_cipher_alignmask() argument 116 return crypto_tfm_alg_alignmask(crypto_cipher_tfm(tfm)); in crypto_cipher_alignmask() [all …]
|
| 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() argument 33 if (crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS) in crypto_des_verify_key() 91 static inline int crypto_des3_ede_verify_key(struct crypto_tfm *tfm, in crypto_des3_ede_verify_key() argument 95 crypto_tfm_get_flags(tfm) & in crypto_des3_ede_verify_key() 99 static inline int verify_skcipher_des_key(struct crypto_skcipher *tfm, in verify_skcipher_des_key() argument 102 return crypto_des_verify_key(crypto_skcipher_tfm(tfm), key); in verify_skcipher_des_key() 105 static inline int verify_skcipher_des3_key(struct crypto_skcipher *tfm, in verify_skcipher_des3_key() argument 108 return crypto_des3_ede_verify_key(crypto_skcipher_tfm(tfm), key); 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() argument 116 return crypto_des_verify_key(crypto_aead_tfm(tfm), key); in verify_aead_des_key() [all …]
|
| /linux/crypto/ |
| H A D | cipher.c | 20 static int setkey_unaligned(struct crypto_cipher *tfm, const u8 *key, in setkey_unaligned() argument 23 struct cipher_alg *cia = crypto_cipher_alg(tfm); in setkey_unaligned() 24 unsigned long alignmask = crypto_cipher_alignmask(tfm); in setkey_unaligned() 36 ret = cia->cia_setkey(crypto_cipher_tfm(tfm), alignbuffer, keylen); in setkey_unaligned() 42 int crypto_cipher_setkey(struct crypto_cipher *tfm, in crypto_cipher_setkey() argument 45 struct cipher_alg *cia = crypto_cipher_alg(tfm); in crypto_cipher_setkey() 46 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_cipher_setkey() 52 return setkey_unaligned(tfm, key, keylen); in crypto_cipher_setkey() 54 return cia->cia_setkey(crypto_cipher_tfm(tfm), key, keylen); in crypto_cipher_setkey() 58 static inline void cipher_crypt_one(struct crypto_cipher *tfm, in cipher_crypt_one() argument [all …]
|
| H A D | api.c | 371 static void crypto_exit_ops(struct crypto_tfm *tfm) in crypto_exit_ops() argument 373 const struct crypto_type *type = tfm->__crt_alg->cra_type; in crypto_exit_ops() 375 if (type && tfm->exit) in crypto_exit_ops() 376 tfm->exit(tfm); in crypto_exit_ops() 411 struct crypto_tfm *tfm; in __crypto_alloc_tfmgfp() local 415 tfm_size = sizeof(*tfm) + crypto_ctxsize(alg, type, mask); in __crypto_alloc_tfmgfp() 416 tfm = kzalloc(tfm_size, gfp); in __crypto_alloc_tfmgfp() 417 if (tfm == NULL) in __crypto_alloc_tfmgfp() 420 tfm->__crt_alg = alg; in __crypto_alloc_tfmgfp() 421 refcount_set(&tfm->refcnt, 1); in __crypto_alloc_tfmgfp() [all …]
|
| H A D | essiv.c | 66 static int essiv_skcipher_setkey(struct crypto_skcipher *tfm, in essiv_skcipher_setkey() argument 69 struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in essiv_skcipher_setkey() 75 crypto_skcipher_get_flags(tfm) & in essiv_skcipher_setkey() 87 crypto_skcipher_get_flags(tfm) & in essiv_skcipher_setkey() 93 static int essiv_aead_setkey(struct crypto_aead *tfm, const u8 *key, in essiv_aead_setkey() argument 96 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_setkey() 103 crypto_aead_set_flags(tctx->u.aead, crypto_aead_get_flags(tfm) & in essiv_aead_setkey() 112 desc->tfm = tctx->hash; in essiv_aead_setkey() 120 crypto_cipher_set_flags(tctx->essiv_cipher, crypto_aead_get_flags(tfm) & in essiv_aead_setkey() 126 static int essiv_aead_setauthsize(struct crypto_aead *tfm, in essiv_aead_setauthsize() argument [all …]
|
| H A D | algif_skcipher.c | 44 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg() local 45 unsigned ivsize = crypto_skcipher_ivsize(tfm); in skcipher_sendmsg() 53 struct crypto_skcipher *tfm; in algif_skcipher_export() local 66 tfm = pask->private; in algif_skcipher_export() 68 statesize = crypto_skcipher_statesize(tfm); in algif_skcipher_export() 104 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg() local 105 unsigned int bs = crypto_skcipher_chunksize(tfm); in _skcipher_recvmsg() 119 crypto_skcipher_reqsize(tfm)); in _skcipher_recvmsg() 160 skcipher_request_set_tfm(&areq->cra_u.skcipher_req, tfm); in _skcipher_recvmsg() 167 sock_kzfree_s(sk, ctx->state, crypto_skcipher_statesize(tfm)); in _skcipher_recvmsg() [all …]
|
| H A D | testmgr.c | 854 #define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \ argument 864 err = setkey_f((tfm), keyptr, (ksize)); \ 1295 struct crypto_shash *tfm = desc->tfm; in test_shash_vec_cfg() local 1296 const unsigned int digestsize = crypto_shash_digestsize(tfm); in test_shash_vec_cfg() 1297 const unsigned int statesize = crypto_shash_statesize(tfm); in test_shash_vec_cfg() 1298 const char *driver = crypto_shash_driver_name(tfm); in test_shash_vec_cfg() 1306 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg() 1313 crypto_shash_get_flags(tfm)); in test_shash_vec_cfg() 1333 testmgr_poison(desc->__ctx, crypto_shash_descsize(tfm)); in test_shash_vec_cfg() 1413 testmgr_poison(desc->__ctx, crypto_shash_descsize(tfm)); in test_shash_vec_cfg() [all …]
|
| H A D | algif_aead.c | 43 struct crypto_aead *tfm = pask->private; in aead_sufficient_data() local 44 unsigned int as = crypto_aead_authsize(tfm); in aead_sufficient_data() 59 struct crypto_aead *tfm = pask->private; in aead_sendmsg() local 60 unsigned int ivsize = crypto_aead_ivsize(tfm); in aead_sendmsg() 73 struct crypto_aead *tfm = pask->private; in _aead_recvmsg() local 74 unsigned int as = crypto_aead_authsize(tfm); in _aead_recvmsg() 75 unsigned int ivsize = crypto_aead_ivsize(tfm); in _aead_recvmsg() 130 crypto_aead_reqsize(tfm) + ivsize); in _aead_recvmsg() 135 crypto_aead_reqsize(tfm); in _aead_recvmsg() 198 aead_request_set_tfm(&areq->cra_u.aead_req, tfm); in _aead_recvmsg() [all …]
|
| /linux/net/mac80211/ |
| H A D | aead_api.c | 18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument 21 size_t mic_len = crypto_aead_authsize(tfm); in aead_encrypt() 24 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in aead_encrypt() 40 aead_request_set_tfm(aead_req, tfm); in aead_encrypt() 50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() argument 53 size_t mic_len = crypto_aead_authsize(tfm); in aead_decrypt() 56 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in aead_decrypt() 75 aead_request_set_tfm(aead_req, tfm); in aead_decrypt() 89 struct crypto_aead *tfm; in aead_key_setup_encrypt() local 92 tfm = crypto_alloc_aead(alg, 0, CRYPTO_ALG_ASYNC); in aead_key_setup_encrypt() [all …]
|
| H A D | aes_gmac.c | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument 23 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in ieee80211_aes_gmac() 61 aead_request_set_tfm(aead_req, tfm); in ieee80211_aes_gmac() 74 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() 77 tfm = crypto_alloc_aead("gcm(aes)", 0, CRYPTO_ALG_ASYNC); in ieee80211_aes_gmac_key_setup() 78 if (IS_ERR(tfm)) in ieee80211_aes_gmac_key_setup() 79 return tfm; in ieee80211_aes_gmac_key_setup() 81 err = crypto_aead_setkey(tfm, key, key_len); in ieee80211_aes_gmac_key_setup() 83 err = crypto_aead_setauthsize(tfm, IEEE80211_GMAC_MIC_LEN); in ieee80211_aes_gmac_key_setup() 85 return tfm; in ieee80211_aes_gmac_key_setup() 72 struct crypto_aead *tfm; ieee80211_aes_gmac_key_setup() local 89 ieee80211_aes_gmac_key_free(struct crypto_aead * tfm) ieee80211_aes_gmac_key_free() argument [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 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 …]
|
| /linux/net/bluetooth/ |
| H A D | selftest.c | 141 static int __init test_ecdh_sample(struct crypto_kpp *tfm, const u8 priv_a[32], in test_ecdh_sample() argument 155 ret = set_ecdh_privkey(tfm, priv_a); in test_ecdh_sample() 159 ret = compute_ecdh_secret(tfm, pub_b, dhkey_a); in test_ecdh_sample() 168 ret = set_ecdh_privkey(tfm, priv_b); in test_ecdh_sample() 172 ret = compute_ecdh_secret(tfm, pub_a, dhkey_b); in test_ecdh_sample() 201 struct crypto_kpp *tfm; in test_ecdh() local 208 tfm = crypto_alloc_kpp("ecdh-nist-p256", 0, 0); in test_ecdh() 209 if (IS_ERR(tfm)) { in test_ecdh() 211 err = PTR_ERR(tfm); in test_ecdh() 215 err = test_ecdh_sample(tfm, priv_a_1, priv_b_1, pub_a_1, pub_b_1, in test_ecdh() [all …]
|
| /linux/samples/tsm-mr/ |
| H A D | tsm_mr_sample.c | 26 struct crypto_shash *tfm; sample_report_refresh() local
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_keys.c | 305 krb5_cmac_Ki(struct crypto_shash *tfm, const struct xdr_netobj *constant, in krb5_cmac_Ki() argument 309 SHASH_DESC_ON_STACK(desc, tfm); in krb5_cmac_Ki() 314 desc->tfm = tfm; in krb5_cmac_Ki() 377 struct crypto_shash *tfm; in krb5_kdf_feedback_cmac() local 386 tfm = crypto_alloc_shash(gk5e->cksum_name, 0, 0); in krb5_kdf_feedback_cmac() 387 if (IS_ERR(tfm)) { in krb5_kdf_feedback_cmac() 388 ret = PTR_ERR(tfm); in krb5_kdf_feedback_cmac() 391 ret = crypto_shash_setkey(tfm, inkey->data, inkey->len); in krb5_kdf_feedback_cmac() 395 blocksize = crypto_shash_digestsize(tfm); in krb5_kdf_feedback_cmac() 412 ret = krb5_cmac_Ki(tfm, constant, outkey->len, count, &step); in krb5_kdf_feedback_cmac() [all …]
|
| /linux/include/linux/ |
| H A D | bpf_crypto.h | 8 void (*free_tfm)(void *tfm); 10 int (*setkey)(void *tfm, const u8 *key, unsigned int keylen); 11 int (*setauthsize)(void *tfm, unsigned int authsize); 12 int (*encrypt)(void *tfm, const u8 *src, u8 *dst, unsigned int len, u8 *iv); 13 int (*decrypt)(void *tfm, const u8 *src, u8 *dst, unsigned int len, u8 *iv); 14 unsigned int (*ivsize)(void *tfm); 15 unsigned int (*statesize)(void *tfm); 16 u32 (*get_flags)(void *tfm);
|
| /linux/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() 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 …]
|
| /linux/drivers/crypto/gemini/ |
| H A 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 …]
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 95 int sun8i_ss_hash_init_tfm(struct crypto_ahash *tfm) in sun8i_ss_hash_init_tfm() argument 97 struct sun8i_ss_hash_tfm_ctx *op = crypto_ahash_ctx(tfm); in sun8i_ss_hash_init_tfm() 98 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_init_tfm() 106 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0, in sun8i_ss_hash_init_tfm() 113 crypto_ahash_set_statesize(tfm, in sun8i_ss_hash_init_tfm() 116 crypto_ahash_set_reqsize(tfm, in sun8i_ss_hash_init_tfm() 133 void sun8i_ss_hash_exit_tfm(struct crypto_ahash *tfm) in sun8i_ss_hash_exit_tfm() argument 135 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ss_hash_exit_tfm() 147 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_init() local 148 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ss_hash_init() [all …]
|
| /linux/security/keys/ |
| H A D | dh.c | 69 struct crypto_shash *tfm; in kdf_alloc() local 72 tfm = crypto_alloc_shash(hashname, 0, 0); in kdf_alloc() 73 if (IS_ERR(tfm)) { in kdf_alloc() 75 return PTR_ERR(tfm); in kdf_alloc() 78 if (crypto_shash_digestsize(tfm) == 0) { in kdf_alloc() 79 crypto_free_shash(tfm); in kdf_alloc() 83 *hash = tfm; in kdf_alloc() 134 struct crypto_kpp *tfm; in __keyctl_dh_compute() local 210 tfm = crypto_alloc_kpp("dh", 0, 0); in __keyctl_dh_compute() 211 if (IS_ERR(tfm)) { in __keyctl_dh_compute() [all …]
|
| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_hash.c | 620 static int safexcel_ahash_exit_inv(struct crypto_tfm *tfm) in safexcel_ahash_exit_inv() argument 622 struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_ahash_exit_inv() 637 ahash_request_set_tfm(req, __crypto_ahash_cast(tfm)); in safexcel_ahash_exit_inv() 638 ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_ahash_exit_inv() 916 static int safexcel_ahash_cra_init(struct crypto_tfm *tfm) in safexcel_ahash_cra_init() argument 918 struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_ahash_cra_init() 920 container_of(__crypto_ahash_alg(tfm->__crt_alg), in safexcel_ahash_cra_init() 928 crypto_ahash_set_reqsize_dma(__crypto_ahash_cast(tfm), in safexcel_ahash_cra_init() 959 static void safexcel_ahash_cra_exit(struct crypto_tfm *tfm) in safexcel_ahash_cra_exit() argument 961 struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_ahash_cra_exit() [all …]
|
| /linux/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 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 …]
|
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-hash.c | 117 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_init() local 118 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); in tegra_sha_fallback_init() 131 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_update() local 132 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); in tegra_sha_fallback_update() 146 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_final() local 147 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); in tegra_sha_fallback_final() 161 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_finup() local 162 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); in tegra_sha_fallback_finup() 177 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in tegra_sha_fallback_digest() local 178 struct tegra_sha_ctx *ctx = crypto_ahash_ctx(tfm); in tegra_sha_fallback_digest() [all …]
|