Home
last modified time | relevance | path

Searched refs:tfm (Results 1 – 25 of 117) sorted by relevance

12345

/linux/include/crypto/
H A Daead.h140 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 Dkpp.h78 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 …]
H A Dalgapi.h185 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) in crypto_tfm_ctx() argument
187 return tfm->__crt_ctx; in crypto_tfm_ctx()
190 static inline void *crypto_tfm_ctx_align(struct crypto_tfm *tfm, in crypto_tfm_ctx_align() argument
196 return PTR_ALIGN(crypto_tfm_ctx(tfm), align); in crypto_tfm_ctx_align()
209 static inline void *crypto_tfm_ctx_dma(struct crypto_tfm *tfm) in crypto_tfm_ctx_dma() argument
211 return crypto_tfm_ctx_align(tfm, crypto_dma_align()); in crypto_tfm_ctx_dma()
215 struct crypto_tfm *tfm) in crypto_tfm_alg_instance() argument
217 return container_of(tfm->__crt_alg, struct crypto_instance, alg); in crypto_tfm_alg_instance()
273 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type() argument
275 return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK; in crypto_tfm_alg_type()
[all …]
/linux/security/integrity/ima/
H A Dima_crypto.c52 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/net/mac80211/
H A Daead_api.c18 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 Daes_gcm.h13 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_encrypt() argument
17 return aead_encrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_encrypt()
22 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_decrypt() argument
26 return aead_decrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_decrypt()
38 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_key_free() argument
40 return aead_key_free(tfm); in ieee80211_aes_gcm_key_free()
H A Daes_ccm.h21 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_encrypt() argument
25 return aead_encrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_encrypt()
31 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_decrypt() argument
35 return aead_decrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_decrypt()
40 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free() argument
42 return aead_key_free(tfm); in ieee80211_aes_key_free()
/linux/include/crypto/internal/
H A Ddes.h26 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 …]
H A Drng.h29 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) in crypto_rng_ctx() argument
31 return crypto_tfm_ctx(&tfm->base); in crypto_rng_ctx()
34 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, in crypto_rng_set_entropy() argument
37 crypto_rng_alg(tfm)->set_ent(tfm, data, len); in crypto_rng_set_entropy()
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c17 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/include/linux/
H A Dbpf_crypto.h8 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/samples/tsm-mr/
H A Dtsm_mr_sample.c26 struct crypto_shash *tfm; sample_report_refresh() local
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c
/linux/drivers/crypto/
H A Dgeode-aes.c110 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/crypto/
H A Dalgif_skcipher.c63 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg() local
64 unsigned ivsize = crypto_skcipher_ivsize(tfm); in skcipher_sendmsg()
72 struct crypto_skcipher *tfm; in algif_skcipher_export() local
85 tfm = pask->private; in algif_skcipher_export()
87 statesize = crypto_skcipher_statesize(tfm); in algif_skcipher_export()
109 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg() local
110 unsigned int bs = crypto_skcipher_chunksize(tfm); in _skcipher_recvmsg()
124 crypto_skcipher_reqsize(tfm)); in _skcipher_recvmsg()
165 skcipher_request_set_tfm(&areq->cra_u.skcipher_req, tfm); in _skcipher_recvmsg()
172 sock_kzfree_s(sk, ctx->state, crypto_skcipher_statesize(tfm)); in _skcipher_recvmsg()
[all …]
H A Dessiv.c66 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 Dchacha.c20 static int chacha_setkey(struct crypto_skcipher *tfm, in chacha_setkey() argument
23 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_setkey()
36 static int chacha20_setkey(struct crypto_skcipher *tfm, in chacha20_setkey() argument
39 return chacha_setkey(tfm, key, keysize, 20); in chacha20_setkey()
42 static int chacha12_setkey(struct crypto_skcipher *tfm, in chacha12_setkey() argument
45 return chacha_setkey(tfm, key, keysize, 12); in chacha12_setkey()
76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_chacha_crypt() local
77 const struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_chacha_crypt()
84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_xchacha_crypt() local
85 const struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_xchacha_crypt()
/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c95 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 Ddh.c69 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/amlogic/
H A Damlogic-gxl-cipher.c60 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/inside-secure/
H A Dsafexcel_hash.c620 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/tegra/
H A Dtegra-se-hash.c117 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 …]
/linux/arch/arm64/crypto/
H A Dsm4-ce-glue.c69 static int sm4_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_setkey() argument
72 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey()
83 static int sm4_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_xts_setkey() argument
86 struct sm4_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_xts_setkey()
92 ret = xts_verify_key(tfm, key, key_len); in sm4_xts_setkey()
135 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_encrypt() local
136 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt()
143 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_decrypt() local
144 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt()
185 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt() local
[all …]
H A Dsm4-neon-glue.c28 static int sm4_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_setkey() argument
31 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey()
63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_encrypt() local
64 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt()
71 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_decrypt() local
72 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt()
79 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt() local
80 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt()
111 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_decrypt() local
112 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_decrypt()
[all …]
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c103 struct crypto_aead *tfm; in validate_hmac_cipher_null() local
106 tfm = crypto_aead_reqtfm(req); in validate_hmac_cipher_null()
110 crypto_aead_authsize(tfm)) != 0) in validate_hmac_cipher_null()
239 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in create_ctx_hdr() local
240 struct otx_cpt_enc_ctx *ctx = crypto_tfm_ctx(tfm); in create_ctx_hdr()
394 static int otx_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_xts_setkey() argument
397 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in otx_cpt_skcipher_xts_setkey()
402 ret = xts_verify_key(tfm, key, keylen); in otx_cpt_skcipher_xts_setkey()
423 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey() argument
426 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in cpt_des_setkey()
[all …]

12345