Home
last modified time | relevance | path

Searched refs:tfm (Results 51 – 75 of 481) sorted by relevance

12345678910>>...20

/openbmc/linux/crypto/
H A Daead.c47 ret = crypto_aead_alg(tfm)->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
52 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey() argument
59 err = setkey_unaligned(tfm, key, keylen); in crypto_aead_setkey()
61 err = crypto_aead_alg(tfm)->setkey(tfm, key, keylen); in crypto_aead_setkey()
64 crypto_aead_set_flags(tfm, CRYPTO_TFM_NEED_KEY); in crypto_aead_setkey()
68 crypto_aead_clear_flags(tfm, CRYPTO_TFM_NEED_KEY); in crypto_aead_setkey()
77 if ((!authsize && crypto_aead_maxauthsize(tfm)) || in crypto_aead_setauthsize()
78 authsize > crypto_aead_maxauthsize(tfm)) in crypto_aead_setauthsize()
81 if (crypto_aead_alg(tfm)->setauthsize) { in crypto_aead_setauthsize()
82 err = crypto_aead_alg(tfm)->setauthsize(tfm, authsize); in crypto_aead_setauthsize()
[all …]
H A Decdh.c23 return kpp_tfm_ctx(tfm); in ecdh_get_ctx()
29 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_set_secret()
54 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() local
55 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_compute_value()
120 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size() argument
122 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_max_size()
128 static int ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p192_init_tfm() argument
130 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_nist_p192_init_tfm()
153 static int ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p256_init_tfm() argument
155 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_nist_p256_init_tfm()
[all …]
H A Dakcipher.c44 static void crypto_akcipher_exit_tfm(struct crypto_tfm *tfm) in crypto_akcipher_exit_tfm() argument
46 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_exit_tfm()
52 static int crypto_akcipher_init_tfm(struct crypto_tfm *tfm) in crypto_akcipher_init_tfm() argument
215 akcipher_request_set_tfm(req, data->tfm); in crypto_akcipher_sync_prep()
250 .tfm = tfm, in crypto_akcipher_sync_encrypt()
268 .tfm = tfm, in crypto_akcipher_sync_decrypt()
284 struct crypto_akcipher **ctx = crypto_tfm_ctx(tfm); in crypto_exit_akcipher_ops_sig()
289 int crypto_init_akcipher_ops_sig(struct crypto_tfm *tfm) in crypto_init_akcipher_ops_sig() argument
291 struct crypto_akcipher **ctx = crypto_tfm_ctx(tfm); in crypto_init_akcipher_ops_sig()
292 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_akcipher_ops_sig()
[all …]
H A Dlzo.c18 static void *lzo_alloc_ctx(struct crypto_scomp *tfm) in lzo_alloc_ctx() argument
29 static int lzo_init(struct crypto_tfm *tfm) in lzo_init() argument
31 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_init()
40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzo_free_ctx() argument
45 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit() argument
47 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_exit()
67 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress() argument
70 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_compress()
75 static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, in lzo_scompress() argument
97 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress() argument
[all …]
H A Dlzo-rle.c18 static void *lzorle_alloc_ctx(struct crypto_scomp *tfm) in lzorle_alloc_ctx() argument
29 static int lzorle_init(struct crypto_tfm *tfm) in lzorle_init() argument
31 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); in lzorle_init()
40 static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzorle_free_ctx() argument
45 static void lzorle_exit(struct crypto_tfm *tfm) in lzorle_exit() argument
47 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); in lzorle_exit()
67 static int lzorle_compress(struct crypto_tfm *tfm, const u8 *src, in lzorle_compress() argument
70 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); in lzorle_compress()
75 static int lzorle_scompress(struct crypto_scomp *tfm, const u8 *src, in lzorle_scompress() argument
97 static int lzorle_decompress(struct crypto_tfm *tfm, const u8 *src, in lzorle_decompress() argument
[all …]
H A Dcrypto_null.c27 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress() argument
59 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, in null_hash_setkey() argument
67 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, in null_setkey() argument
71 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in null_crypt() argument
155 struct crypto_sync_skcipher *tfm; in crypto_get_default_null_skcipher() local
158 tfm = crypto_default_null_skcipher; in crypto_get_default_null_skcipher()
160 if (!tfm) { in crypto_get_default_null_skcipher()
161 tfm = crypto_alloc_sync_skcipher("ecb(cipher_null)", 0, 0); in crypto_get_default_null_skcipher()
162 if (IS_ERR(tfm)) in crypto_get_default_null_skcipher()
165 crypto_default_null_skcipher = tfm; in crypto_get_default_null_skcipher()
[all …]
H A Dskcipher.c488 walk->stride = crypto_skcipher_walksize(tfm); in skcipher_walk_skcipher()
489 walk->ivsize = crypto_skcipher_ivsize(tfm); in skcipher_walk_skcipher()
553 walk->stride = crypto_aead_chunksize(tfm); in skcipher_walk_aead_common()
554 walk->ivsize = crypto_aead_ivsize(tfm); in skcipher_walk_aead_common()
587 if (crypto_skcipher_max_keysize(tfm) != 0) in skcipher_set_needkey()
625 err = cipher->setkey(tfm, key, keylen); in crypto_skcipher_setkey()
628 skcipher_set_needkey(tfm); in crypto_skcipher_setkey()
810 struct crypto_skcipher *tfm; in crypto_alloc_sync_skcipher() local
821 if (!IS_ERR(tfm) && WARN_ON(crypto_skcipher_reqsize(tfm) > in crypto_alloc_sync_skcipher()
823 crypto_free_skcipher(tfm); in crypto_alloc_sync_skcipher()
[all …]
H A Dcompress.c16 struct crypto_tfm *tfm = crypto_comp_tfm(comp); in crypto_comp_compress() local
18 return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, in crypto_comp_compress()
27 struct crypto_tfm *tfm = crypto_comp_tfm(comp); in crypto_comp_decompress() local
29 return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, in crypto_comp_decompress()
H A Dessiv.c75 crypto_skcipher_get_flags(tfm) & in essiv_skcipher_setkey()
87 crypto_skcipher_get_flags(tfm) & in essiv_skcipher_setkey()
96 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_setkey()
112 desc->tfm = tctx->hash; in essiv_aead_setkey()
129 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_setauthsize()
185 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in essiv_aead_crypt() local
202 req->assoclen - crypto_aead_ivsize(tfm), in essiv_aead_crypt()
203 crypto_aead_ivsize(tfm), 1); in essiv_aead_crypt()
206 int ivsize = crypto_aead_ivsize(tfm); in essiv_aead_crypt()
326 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_init_tfm()
[all …]
H A Ddeflate.c140 static void *deflate_alloc_ctx(struct crypto_scomp *tfm) in deflate_alloc_ctx() argument
142 return gen_deflate_alloc_ctx(tfm, 0); in deflate_alloc_ctx()
145 static void *zlib_deflate_alloc_ctx(struct crypto_scomp *tfm) in zlib_deflate_alloc_ctx() argument
147 return gen_deflate_alloc_ctx(tfm, 1); in zlib_deflate_alloc_ctx()
150 static int deflate_init(struct crypto_tfm *tfm) in deflate_init() argument
152 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_init()
163 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) in deflate_free_ctx() argument
169 static void deflate_exit(struct crypto_tfm *tfm) in deflate_exit() argument
171 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_exit()
208 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); in deflate_compress()
[all …]
H A Dcts.c69 struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cts_reqctx_space()
73 crypto_skcipher_alignmask(tfm) + 1); in crypto_cts_reqctx_space()
103 int bsize = crypto_skcipher_blocksize(tfm); in cts_cbc_encrypt()
147 struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cts_encrypt()
149 int bsize = crypto_skcipher_blocksize(tfm); in crypto_cts_encrypt()
184 int bsize = crypto_skcipher_blocksize(tfm); in cts_cbc_decrypt()
241 struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cts_decrypt()
243 int bsize = crypto_skcipher_blocksize(tfm); in crypto_cts_decrypt()
287 struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cts_init_tfm()
299 align = crypto_skcipher_alignmask(tfm); in crypto_cts_init_tfm()
[all …]
/openbmc/linux/drivers/crypto/
H A Dgeode-aes.c113 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()
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()
192 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() argument
194 const char *name = crypto_tfm_alg_name(tfm); in fallback_init_cip()
195 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in fallback_init_cip()
208 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() argument
210 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in fallback_exit_cip()
238 static int geode_init_skcipher(struct crypto_skcipher *tfm) in geode_init_skcipher() argument
[all …]
/openbmc/linux/arch/sparc/crypto/
H A Ddes_glue.c45 static int des_set_key(struct crypto_tfm *tfm, const u8 *key, in des_set_key() argument
48 struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des_set_key()
55 err = crypto_des_verify_key(tfm, key); in des_set_key()
68 return des_set_key(crypto_skcipher_tfm(tfm), key, keylen); in des_set_key_skcipher()
76 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des_encrypt()
84 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des_decrypt()
97 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local
184 struct des3_ede_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_set_key()
190 err = crypto_des3_ede_verify_key(tfm, key); in des3_ede_set_key()
225 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); in sparc_des3_ede_encrypt()
[all …]
/openbmc/linux/include/crypto/internal/
H A Dhash.h78 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
136 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx() argument
138 return crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in crypto_ahash_ctx()
141 static inline void *crypto_ahash_ctx_dma(struct crypto_ahash *tfm) in crypto_ahash_ctx_dma() argument
143 return crypto_tfm_ctx_dma(crypto_ahash_tfm(tfm)); in crypto_ahash_ctx_dma()
161 tfm->statesize = size; in crypto_ahash_set_statesize()
167 tfm->reqsize = reqsize; in crypto_ahash_set_reqsize()
238 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx() argument
240 return crypto_tfm_ctx(&tfm->base); in crypto_shash_ctx()
274 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_shash_ctx_aligned()
[all …]
H A Dacompress.h42 int (*init)(struct crypto_acomp *tfm);
43 void (*exit)(struct crypto_acomp *tfm);
61 static inline void *acomp_tfm_ctx(struct crypto_acomp *tfm) in acomp_tfm_ctx() argument
63 return tfm->base.__crt_ctx; in acomp_tfm_ctx()
72 static inline struct acomp_req *__acomp_request_alloc(struct crypto_acomp *tfm) in __acomp_request_alloc() argument
76 req = kzalloc(sizeof(*req) + crypto_acomp_reqsize(tfm), GFP_KERNEL); in __acomp_request_alloc()
78 acomp_request_set_tfm(req, tfm); in __acomp_request_alloc()
H A Dchacha.h15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey() argument
18 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_setkey()
31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha20_setkey() argument
34 return chacha_setkey(tfm, key, keysize, 20); in chacha20_setkey()
37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha12_setkey() argument
40 return chacha_setkey(tfm, key, keysize, 12); in chacha12_setkey()
/openbmc/linux/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c27 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
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
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()
314 int sl3516_ce_cipher_init(struct crypto_tfm *tfm) in sl3516_ce_cipher_init() argument
318 const char *name = crypto_tfm_alg_name(tfm); in sl3516_ce_cipher_init()
[all …]
/openbmc/linux/include/crypto/
H A Dalgapi.h60 int (*init_tfm)(struct crypto_tfm *tfm);
184 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) in crypto_tfm_ctx() argument
186 return tfm->__crt_ctx; in crypto_tfm_ctx()
189 static inline void *crypto_tfm_ctx_align(struct crypto_tfm *tfm, in crypto_tfm_ctx_align() argument
195 return PTR_ALIGN(crypto_tfm_ctx(tfm), align); in crypto_tfm_ctx_align()
200 return crypto_tfm_ctx_align(tfm, crypto_tfm_alg_alignmask(tfm) + 1); in crypto_tfm_ctx_aligned()
213 static inline void *crypto_tfm_ctx_dma(struct crypto_tfm *tfm) in crypto_tfm_ctx_dma() argument
215 return crypto_tfm_ctx_align(tfm, crypto_dma_align()); in crypto_tfm_ctx_dma()
219 struct crypto_tfm *tfm) in crypto_tfm_alg_instance() argument
277 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type() argument
[all …]
/openbmc/linux/arch/arm/crypto/
H A Daes-neonbs-glue.c71 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in aesbs_setkey()
93 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in __ecb_crypt()
192 static int cbc_init(struct crypto_skcipher *tfm) in cbc_init() argument
204 crypto_skcipher_set_reqsize(tfm, reqsize); in cbc_init()
209 static void cbc_exit(struct crypto_skcipher *tfm) in cbc_exit() argument
238 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_encrypt()
299 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
311 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()
314 static int xts_init(struct crypto_skcipher *tfm) in xts_init() argument
329 static void xts_exit(struct crypto_skcipher *tfm) in xts_exit() argument
[all …]
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-cipher.c26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_need_fallback()
97 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher_fallback()
129 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ss_setup_ivs()
189 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher()
204 crypto_tfm_alg_name(areq->base.tfm), in sun8i_ss_cipher()
206 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm), in sun8i_ss_cipher()
224 ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ss_cipher()
225 if (areq->iv && crypto_skcipher_ivsize(tfm) > 0) { in sun8i_ss_cipher()
387 int sun8i_ss_cipher_init(struct crypto_tfm *tfm) in sun8i_ss_cipher_init() argument
391 const char *name = crypto_tfm_alg_name(tfm); in sun8i_ss_cipher_init()
[all …]
/openbmc/linux/drivers/crypto/cavium/zip/
H A Dzip_crypto.c199 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
285 int zip_scomp_compress(struct crypto_scomp *tfm, in zip_scomp_compress() argument
[all …]
/openbmc/linux/net/mac80211/
H A Dfils_aead.c25 static int aes_s2v(struct crypto_shash *tfm, in aes_s2v() argument
29 SHASH_DESC_ON_STACK(desc, tfm); in aes_s2v()
32 desc->tfm = tfm; in aes_s2v()
72 struct crypto_shash *tfm; in aes_siv_encrypt() local
88 if (IS_ERR(tfm)) in aes_siv_encrypt()
89 return PTR_ERR(tfm); in aes_siv_encrypt()
94 crypto_free_shash(tfm); in aes_siv_encrypt()
149 struct crypto_shash *tfm; in aes_siv_decrypt() local
203 if (IS_ERR(tfm)) in aes_siv_decrypt()
204 return PTR_ERR(tfm); in aes_siv_decrypt()
[all …]
/openbmc/linux/arch/s390/crypto/
H A Ddes_s390.c38 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des_setkey()
41 err = crypto_des_verify_key(tfm, key); in des_setkey()
57 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in s390_des_encrypt()
64 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in s390_des_decrypt()
92 struct s390_des_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_desall_crypt()
111 struct s390_des_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_desall_crypt()
203 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des3_setkey()
206 err = crypto_des3_ede_verify_key(tfm, key); in des3_setkey()
222 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des3_encrypt()
229 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); in des3_decrypt()
[all …]
/openbmc/linux/drivers/crypto/vmx/
H A Daes_cbc.c24 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()
/openbmc/linux/security/keys/
H A Ddh.c69 struct crypto_shash *tfm; in kdf_alloc() local
73 if (IS_ERR(tfm)) { in kdf_alloc()
75 return PTR_ERR(tfm); 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()
212 ret = PTR_ERR(tfm); in __keyctl_dh_compute()
220 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute()
[all …]

12345678910>>...20