Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 75) sorted by relevance

123

/crypto/
Dzstd.c32 static int zstd_comp_init(struct zstd_ctx *ctx) in zstd_comp_init()
56 static int zstd_decomp_init(struct zstd_ctx *ctx) in zstd_decomp_init()
79 static void zstd_comp_exit(struct zstd_ctx *ctx) in zstd_comp_exit()
86 static void zstd_decomp_exit(struct zstd_ctx *ctx) in zstd_decomp_exit()
93 static int __zstd_init(void *ctx) in __zstd_init()
109 struct zstd_ctx *ctx; in zstd_alloc_ctx() local
126 struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); in zstd_init() local
131 static void __zstd_exit(void *ctx) in __zstd_exit()
137 static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) in zstd_free_ctx()
145 struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); in zstd_exit() local
[all …]
Ddeflate.c42 static int deflate_comp_init(struct deflate_ctx *ctx, int format) in deflate_comp_init()
71 static int deflate_decomp_init(struct deflate_ctx *ctx, int format) in deflate_decomp_init()
96 static void deflate_comp_exit(struct deflate_ctx *ctx) in deflate_comp_exit()
102 static void deflate_decomp_exit(struct deflate_ctx *ctx) in deflate_decomp_exit()
108 static int __deflate_init(void *ctx, int format) in __deflate_init()
124 struct deflate_ctx *ctx; in gen_deflate_alloc_ctx() local
152 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_init() local
157 static void __deflate_exit(void *ctx) in __deflate_exit()
163 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) in deflate_free_ctx()
171 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_exit() local
[all …]
Dlz4hc.c20 void *ctx; in lz4hc_alloc_ctx() local
31 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_init() local
40 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4hc_free_ctx()
47 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_exit() local
53 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_compress_crypto()
67 void *ctx) in lz4hc_scompress()
76 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_compress_crypto() local
83 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_decompress_crypto()
96 void *ctx) in lz4hc_sdecompress()
Dlz4.c21 void *ctx; in lz4_alloc_ctx() local
32 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_init() local
41 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4_free_ctx()
48 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_exit() local
54 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_compress_crypto()
68 void *ctx) in lz4_scompress()
76 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_compress_crypto() local
82 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_decompress_crypto()
95 void *ctx) in lz4_sdecompress()
Ddh.c22 static void dh_clear_ctx(struct dh_ctx *ctx) in dh_clear_ctx()
37 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val()
53 static int dh_set_params(struct dh_ctx *ctx, struct dh *params) in dh_set_params()
78 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_set_secret() local
110 static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) in dh_is_pubkey_valid()
153 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_compute_value() local
236 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_max_size() local
243 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_exit_tfm() local
Dcryptd.c230 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(parent); in cryptd_skcipher_setkey() local
243 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_complete() local
261 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_encrypt() local
289 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_decrypt() local
340 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_init_tfm() local
356 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_exit_tfm() local
363 struct skcipherd_instance_ctx *ctx = skcipher_instance_ctx(inst); in cryptd_skcipher_free() local
374 struct skcipherd_instance_ctx *ctx; in cryptd_create_skcipher() local
431 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_hash_init_tfm() local
447 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_hash_exit_tfm() local
[all …]
D842.c33 void *ctx; in crypto842_alloc_ctx() local
44 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); in crypto842_init() local
53 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) in crypto842_free_ctx()
60 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); in crypto842_exit() local
69 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); in crypto842_compress() local
76 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_scompress()
90 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_sdecompress()
Dlzo-rle.c20 void *ctx; in lzorle_alloc_ctx() local
31 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); in lzorle_init() local
40 static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzorle_free_ctx()
47 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); in lzorle_exit() local
53 u8 *dst, unsigned int *dlen, void *ctx) in __lzorle_compress()
70 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); in lzorle_compress() local
77 void *ctx) in lzorle_scompress()
105 void *ctx) in lzorle_sdecompress()
Dlzo.c20 void *ctx; in lzo_alloc_ctx() local
31 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_init() local
40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzo_free_ctx()
47 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_exit() local
53 u8 *dst, unsigned int *dlen, void *ctx) in __lzo_compress()
70 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_compress() local
77 void *ctx) in lzo_scompress()
105 void *ctx) in lzo_sdecompress()
Drsa-pkcs1pad.c110 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_set_pub_key() local
131 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_set_priv_key() local
151 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_get_max_size() local
177 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_encrypt_sign_complete() local
230 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_encrypt() local
278 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_decrypt_complete() local
346 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_decrypt() local
379 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_sign() local
436 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_verify_complete() local
533 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_verify() local
[all …]
Dxcbc.c30 u8 ctx[]; member
46 u8 ctx[]; member
55 struct xcbc_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_setkey() local
75 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_init() local
91 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_update() local
137 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_final() local
172 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_init_tfm() local
185 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_exit_tfm() local
Dcmac.c31 u8 ctx[]; member
47 u8 ctx[]; member
54 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_cmac_digest_setkey() local
108 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_init() local
124 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_update() local
170 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_final() local
206 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_init_tfm() local
219 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_exit_tfm() local
Dghash-generic.c58 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey() local
82 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() local
115 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) in ghash_flush()
134 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() local
145 struct ghash_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_exit_tfm() local
Dgeniv.c22 struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm); in aead_geniv_setkey() local
30 struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm); in aead_geniv_setauthsize() local
111 struct aead_geniv_ctx *ctx = crypto_aead_ctx(aead); in aead_init_geniv() local
155 struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm); in aead_exit_geniv() local
Dsimd.c53 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_setkey() local
65 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_encrypt() local
86 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_decrypt() local
106 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_exit() local
113 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_init() local
293 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setkey() local
304 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setauthsize() local
313 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_encrypt() local
334 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_decrypt() local
354 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_exit() local
[all …]
Dchacha20poly1305.c86 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_iv() local
125 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_decrypt() local
172 struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); in poly_tail() local
201 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_cipherpad() local
230 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_cipher() local
260 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_adpad() local
289 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_ad() local
313 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_setkey() local
339 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_init() local
363 struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); in poly_genkey() local
[all …]
Dtea.c45 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_setkey() local
61 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_encrypt() local
89 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_decrypt() local
118 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_setkey() local
134 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_encrypt() local
154 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_decrypt() local
178 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xeta_encrypt() local
198 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in xeta_decrypt() local
Dccm.c90 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey() local
173 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_auth() local
288 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_encrypt() local
348 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_decrypt() local
397 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_init_tfm() local
431 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_exit_tfm() local
439 struct ccm_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_ccm_free() local
572 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setkey() local
590 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setauthsize() local
609 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4309_crypt() local
[all …]
Dstreebog_generic.c910 struct streebog_state *ctx = shash_desc_ctx(desc); in streebog_init() local
922 static void streebog_pad(struct streebog_state *ctx) in streebog_pad()
975 static void streebog_stage2(struct streebog_state *ctx, const u8 *data) in streebog_stage2()
987 static void streebog_stage3(struct streebog_state *ctx) in streebog_stage3()
1005 struct streebog_state *ctx = shash_desc_ctx(desc); in streebog_update() local
1038 struct streebog_state *ctx = shash_desc_ctx(desc); in streebog_final() local
Dcrct10dif_generic.c44 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() local
54 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() local
62 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() local
77 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_finup() local
Dauthencesn.c61 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_setkey() local
90 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_genicv_tail() local
124 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_genicv() local
170 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_copy() local
185 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_encrypt() local
225 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_decrypt_tail() local
274 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_decrypt() local
326 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_init_tfm() local
374 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_exit_tfm() local
383 struct authenc_esn_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_esn_free() local
[all …]
Dauthenc.c87 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey() local
136 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv() local
180 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc() local
196 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt() local
234 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt_tail() local
283 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt() local
311 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_init_tfm() local
356 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_exit_tfm() local
365 struct authenc_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_free() local
377 struct authenc_instance_ctx *ctx; in crypto_authenc_create() local
Daes_ti.c15 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_set_key() local
22 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_encrypt() local
38 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_decrypt() local
/crypto/asymmetric_keys/
Dpkcs7_parser.c117 struct pkcs7_parse_context *ctx; in pkcs7_parse_message() local
208 struct pkcs7_parse_context *ctx = context; in pkcs7_note_OID() local
227 struct pkcs7_parse_context *ctx = context; in pkcs7_sig_note_digest_algo() local
265 struct pkcs7_parse_context *ctx = context; in pkcs7_sig_note_pkey_algo() local
286 struct pkcs7_parse_context *ctx = context; in pkcs7_check_content_type() local
303 struct pkcs7_parse_context *ctx = context; in pkcs7_note_signeddata_version() local
337 struct pkcs7_parse_context *ctx = context; in pkcs7_note_signerinfo_version() local
380 struct pkcs7_parse_context *ctx = context; in pkcs7_extract_cert() local
420 struct pkcs7_parse_context *ctx = context; in pkcs7_note_certificate_list() local
438 struct pkcs7_parse_context *ctx = context; in pkcs7_note_content() local
[all …]
Dx509_cert_parser.c66 struct x509_parse_context *ctx; in x509_cert_parse() local
159 struct x509_parse_context *ctx = context; in x509_note_OID() local
179 struct x509_parse_context *ctx = context; in x509_note_tbs_certificate() local
196 struct x509_parse_context *ctx = context; in x509_note_pkey_algo() local
267 struct x509_parse_context *ctx = context; in x509_note_signature() local
300 struct x509_parse_context *ctx = context; in x509_note_serial() local
313 struct x509_parse_context *ctx = context; in x509_extract_name_segment() local
338 static int x509_fabricate_name(struct x509_parse_context *ctx, size_t hdrlen, in x509_fabricate_name()
417 struct x509_parse_context *ctx = context; in x509_note_issuer() local
427 struct x509_parse_context *ctx = context; in x509_note_subject() local
[all …]

123