Home
last modified time | relevance | path

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

123

/crypto/
Dzstd.c40 static int zstd_comp_init(struct zstd_ctx *ctx) in zstd_comp_init()
64 static int zstd_decomp_init(struct zstd_ctx *ctx) in zstd_decomp_init()
87 static void zstd_comp_exit(struct zstd_ctx *ctx) in zstd_comp_exit()
94 static void zstd_decomp_exit(struct zstd_ctx *ctx) in zstd_decomp_exit()
101 static int __zstd_init(void *ctx) in __zstd_init()
117 struct zstd_ctx *ctx; in zstd_alloc_ctx() local
134 struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); in zstd_init() local
139 static void __zstd_exit(void *ctx) in __zstd_exit()
145 static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) in zstd_free_ctx()
153 struct zstd_ctx *ctx = crypto_tfm_ctx(tfm); in zstd_exit() local
[all …]
Ddeflate.c46 static int deflate_comp_init(struct deflate_ctx *ctx, int format) in deflate_comp_init()
75 static int deflate_decomp_init(struct deflate_ctx *ctx, int format) in deflate_decomp_init()
100 static void deflate_comp_exit(struct deflate_ctx *ctx) in deflate_comp_exit()
106 static void deflate_decomp_exit(struct deflate_ctx *ctx) in deflate_decomp_exit()
112 static int __deflate_init(void *ctx, int format) in __deflate_init()
128 struct deflate_ctx *ctx; in gen_deflate_alloc_ctx() local
156 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_init() local
161 static void __deflate_exit(void *ctx) in __deflate_exit()
167 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) in deflate_free_ctx()
175 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); in deflate_exit() local
[all …]
Dcryptd.c221 struct cryptd_blkcipher_ctx *ctx = crypto_ablkcipher_ctx(parent); in cryptd_blkcipher_setkey() local
243 struct cryptd_blkcipher_ctx *ctx; in cryptd_blkcipher_crypt() local
276 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); in cryptd_blkcipher_encrypt() local
285 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); in cryptd_blkcipher_decrypt() local
321 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_blkcipher_init_tfm() local
336 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_blkcipher_exit_tfm() local
388 struct cryptd_instance_ctx *ctx; in cryptd_create_blkcipher() local
450 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(parent); in cryptd_skcipher_setkey() local
466 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_complete() local
484 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_encrypt() local
[all …]
Dlz4hc.c33 void *ctx; in lz4hc_alloc_ctx() local
44 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_init() local
53 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4hc_free_ctx()
60 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_exit() local
66 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_compress_crypto()
80 void *ctx) in lz4hc_scompress()
89 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); in lz4hc_compress_crypto() local
96 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_decompress_crypto()
109 void *ctx) in lz4hc_sdecompress()
Dlz4.c34 void *ctx; in lz4_alloc_ctx() local
45 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_init() local
54 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4_free_ctx()
61 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_exit() local
67 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_compress_crypto()
81 void *ctx) in lz4_scompress()
89 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); in lz4_compress_crypto() local
95 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_decompress_crypto()
108 void *ctx) in lz4_sdecompress()
Ddh.c24 static void dh_clear_ctx(struct dh_ctx *ctx) in dh_clear_ctx()
38 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val()
54 static int dh_set_params(struct dh_ctx *ctx, struct dh *params) in dh_set_params()
76 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_set_secret() local
102 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_compute_value() local
145 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_max_size() local
152 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_exit_tfm() local
Dablk_helper.c40 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in ablk_set_key() local
57 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in __ablk_encrypt() local
72 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in ablk_encrypt() local
92 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); in ablk_decrypt() local
118 struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); in ablk_exit() local
126 struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); in ablk_init_common() local
D842.c42 void *ctx; in crypto842_alloc_ctx() local
53 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); in crypto842_init() local
62 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) in crypto842_free_ctx()
69 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); in crypto842_exit() local
78 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); in crypto842_compress() local
85 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_scompress()
99 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_sdecompress()
Dlzo.c33 void *ctx; in lzo_alloc_ctx() local
44 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_init() local
53 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzo_free_ctx()
60 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_exit() local
66 u8 *dst, unsigned int *dlen, void *ctx) in __lzo_compress()
83 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); in lzo_compress() local
90 void *ctx) in lzo_scompress()
118 void *ctx) in lzo_sdecompress()
Dxcbc.c42 u8 ctx[]; member
58 u8 ctx[]; member
65 struct xcbc_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_setkey() local
85 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_init() local
101 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_update() local
147 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_final() local
182 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_init_tfm() local
195 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_exit_tfm() local
Drsa-pkcs1pad.c112 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_set_pub_key() local
133 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_set_priv_key() local
153 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_get_max_size() local
179 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_encrypt_sign_complete() local
234 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_encrypt() local
284 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_decrypt_complete() local
353 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_decrypt() local
388 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_sign() local
445 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_verify_complete() local
531 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_verify() local
[all …]
Dcmac.c35 u8 ctx[]; member
51 u8 ctx[]; member
58 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_cmac_digest_setkey() local
112 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_init() local
128 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_update() local
174 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_final() local
210 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_init_tfm() local
223 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_exit_tfm() local
Dghash-generic.c36 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey() local
62 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() local
98 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) in ghash_flush()
117 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() local
131 struct ghash_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_exit_tfm() local
Dtea.c50 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_setkey() local
66 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_encrypt() local
94 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in tea_decrypt() local
123 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_setkey() local
139 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_encrypt() local
159 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in xtea_decrypt() local
183 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); in xeta_encrypt() local
203 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); in xeta_decrypt() local
Dchacha_generic.c41 struct chacha_ctx *ctx, u8 *iv) in chacha_stream_xor()
65 void crypto_chacha_init(u32 *state, struct chacha_ctx *ctx, u8 *iv) in crypto_chacha_init()
89 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_setkey() local
119 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_chacha_crypt() local
128 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_xchacha_crypt() local
Dsalsa20_generic.c107 static void salsa20_keysetup(struct salsa20_ctx *ctx, const u8 *k, u32 kbytes) in salsa20_keysetup()
131 static void salsa20_ivsetup(struct salsa20_ctx *ctx, const u8 *iv) in salsa20_ivsetup()
139 static void salsa20_encrypt_bytes(struct salsa20_ctx *ctx, u8 *dst, in salsa20_encrypt_bytes()
172 struct salsa20_ctx *ctx = crypto_tfm_ctx(tfm); in setkey() local
183 struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); in encrypt() local
Dccm.c93 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey() local
183 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_auth() local
298 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_encrypt() local
358 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_decrypt() local
407 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_init_tfm() local
441 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_exit_tfm() local
449 struct ccm_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_ccm_free() local
619 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setkey() local
642 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setauthsize() local
661 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4309_crypt() local
[all …]
Dchacha20poly1305.c94 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_iv() local
133 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_decrypt() local
184 struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); in poly_tail() local
217 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_cipherpad() local
247 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_cipher() local
278 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_adpad() local
308 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_ad() local
332 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_setkey() local
359 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_init() local
383 struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); in poly_genkey() local
[all …]
Dauthencesn.c66 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_setkey() local
105 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_genicv_tail() local
139 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_genicv() local
185 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_copy() local
200 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_encrypt() local
240 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_decrypt_tail() local
289 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_decrypt() local
341 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_init_tfm() local
389 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_exit_tfm() local
398 struct authenc_esn_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_esn_free() local
[all …]
Dcbc.c30 struct crypto_cbc_ctx *ctx = crypto_skcipher_ctx(parent); in crypto_cbc_setkey() local
46 struct crypto_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cbc_encrypt_one() local
59 struct crypto_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cbc_decrypt_one() local
85 struct crypto_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cbc_init_tfm() local
98 struct crypto_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cbc_exit_tfm() local
Dsimd.c48 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_setkey() local
64 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_encrypt() local
85 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_decrypt() local
105 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_exit() local
112 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_init() local
Dauthenc.c92 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey() local
151 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv() local
195 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc() local
211 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt() local
249 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt_tail() local
298 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt() local
326 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_init_tfm() local
371 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_exit_tfm() local
380 struct authenc_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_free() local
395 struct authenc_instance_ctx *ctx; in crypto_authenc_create() 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
/crypto/asymmetric_keys/
Dpkcs7_parser.c116 struct pkcs7_parse_context *ctx; in pkcs7_parse_message() local
205 struct pkcs7_parse_context *ctx = context; in pkcs7_note_OID() local
224 struct pkcs7_parse_context *ctx = context; in pkcs7_sig_note_digest_algo() local
262 struct pkcs7_parse_context *ctx = context; in pkcs7_sig_note_pkey_algo() local
282 struct pkcs7_parse_context *ctx = context; in pkcs7_check_content_type() local
299 struct pkcs7_parse_context *ctx = context; in pkcs7_note_signeddata_version() local
333 struct pkcs7_parse_context *ctx = context; in pkcs7_note_signerinfo_version() local
376 struct pkcs7_parse_context *ctx = context; in pkcs7_extract_cert() local
416 struct pkcs7_parse_context *ctx = context; in pkcs7_note_certificate_list() local
434 struct pkcs7_parse_context *ctx = context; in pkcs7_note_content() local
[all …]
Dx509_cert_parser.c67 struct x509_parse_context *ctx; in x509_cert_parse() local
153 struct x509_parse_context *ctx = context; in x509_note_OID() local
173 struct x509_parse_context *ctx = context; in x509_note_tbs_certificate() local
190 struct x509_parse_context *ctx = context; in x509_note_pkey_algo() local
242 struct x509_parse_context *ctx = context; in x509_note_signature() local
273 struct x509_parse_context *ctx = context; in x509_note_serial() local
286 struct x509_parse_context *ctx = context; in x509_extract_name_segment() local
311 static int x509_fabricate_name(struct x509_parse_context *ctx, size_t hdrlen, in x509_fabricate_name()
390 struct x509_parse_context *ctx = context; in x509_note_issuer() local
400 struct x509_parse_context *ctx = context; in x509_note_subject() local
[all …]

123