/crypto/ |
D | zstd.c | 32 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 …]
|
D | deflate.c | 42 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 …]
|
D | lz4.c | 21 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()
|
D | lz4hc.c | 20 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()
|
D | dh.c | 21 static void dh_clear_ctx(struct dh_ctx *ctx) in dh_clear_ctx() 36 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val() 52 static int dh_set_params(struct dh_ctx *ctx, struct dh *params) in dh_set_params() 77 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_set_secret() local 109 static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) in dh_is_pubkey_valid() 152 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_compute_value() local 198 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_max_size() local 205 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_exit_tfm() local
|
D | cryptd.c | 253 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(parent); in cryptd_skcipher_setkey() local 271 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_complete() local 289 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_encrypt() local 317 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_decrypt() local 368 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_init_tfm() local 383 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in cryptd_skcipher_exit_tfm() local 390 struct skcipherd_instance_ctx *ctx = skcipher_instance_ctx(inst); in cryptd_skcipher_free() local 400 struct skcipherd_instance_ctx *ctx; in cryptd_create_skcipher() local 468 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_hash_init_tfm() local 484 struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); in cryptd_hash_exit_tfm() local [all …]
|
D | 842.c | 33 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()
|
D | lzo-rle.c | 20 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()
|
D | lzo.c | 20 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()
|
D | rsa-pkcs1pad.c | 109 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_set_pub_key() local 130 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_set_priv_key() local 150 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_get_max_size() local 176 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_encrypt_sign_complete() local 231 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_encrypt() local 279 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_decrypt_complete() local 348 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_decrypt() local 381 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_sign() local 438 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_verify_complete() local 534 struct pkcs1pad_ctx *ctx = akcipher_tfm_ctx(tfm); in pkcs1pad_verify() local [all …]
|
D | cmac.c | 30 u8 ctx[]; member 46 u8 ctx[]; member 53 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_cmac_digest_setkey() local 107 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_init() local 123 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_update() local 169 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_final() local 205 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_init_tfm() local 218 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_exit_tfm() local
|
D | xcbc.c | 29 u8 ctx[]; member 45 u8 ctx[]; member 54 struct xcbc_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_setkey() local 74 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_init() local 90 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_update() local 136 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_final() local 171 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_init_tfm() local 184 struct xcbc_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in xcbc_exit_tfm() local
|
D | ghash-generic.c | 58 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey() local 84 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() local 117 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) in ghash_flush() 136 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() local 147 struct ghash_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_exit_tfm() local
|
D | simd.c | 53 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_setkey() local 69 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_encrypt() local 90 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_decrypt() local 110 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_exit() local 117 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_init() local 296 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setkey() local 311 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setauthsize() local 320 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_encrypt() local 341 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_decrypt() local 361 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_exit() local [all …]
|
D | tea.c | 45 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
|
D | chacha_generic.c | 35 const struct chacha_ctx *ctx, const u8 *iv) in chacha_stream_xor() 59 void crypto_chacha_init(u32 *state, const struct chacha_ctx *ctx, const u8 *iv) in crypto_chacha_init() 83 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_setkey() local 113 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_chacha_crypt() local 122 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_xchacha_crypt() local
|
D | ccm.c | 91 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey() local 181 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_auth() local 296 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_encrypt() local 356 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_decrypt() local 405 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_init_tfm() local 439 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_exit_tfm() local 447 struct ccm_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_ccm_free() local 605 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setkey() local 628 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setauthsize() local 647 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4309_crypt() local [all …]
|
D | chacha20poly1305.c | 88 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_iv() local 127 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in chacha_decrypt() local 174 struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); in poly_tail() local 203 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_cipherpad() local 232 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_cipher() local 262 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_adpad() local 291 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_ad() local 315 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_setkey() local 341 struct chachapoly_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in poly_init() local 365 struct chachapoly_ctx *ctx = crypto_aead_ctx(tfm); in poly_genkey() local [all …]
|
D | streebog_generic.c | 910 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
|
D | authencesn.c | 61 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_setkey() local 100 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_genicv_tail() local 134 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_genicv() local 180 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_copy() local 195 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_encrypt() local 235 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_decrypt_tail() local 284 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); in crypto_authenc_esn_decrypt() local 336 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_init_tfm() local 384 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_exit_tfm() local 393 struct authenc_esn_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_esn_free() local [all …]
|
D | authenc.c | 87 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey() local 146 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv() local 190 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc() local 206 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt() local 244 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt_tail() local 293 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt() local 321 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_init_tfm() local 366 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_exit_tfm() local 375 struct authenc_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_free() local 390 struct authenc_instance_ctx *ctx; in crypto_authenc_create() local
|
D | crct10dif_generic.c | 44 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
|
D | pcrypt.c | 38 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(parent); in pcrypt_aead_setkey() local 46 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(parent); in pcrypt_aead_setauthsize() local 91 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(aead); in pcrypt_aead_encrypt() local 133 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(aead); in pcrypt_aead_decrypt() local 160 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm); in pcrypt_aead_init_tfm() local 185 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(tfm); in pcrypt_aead_exit_tfm() local 192 struct pcrypt_instance_ctx *ctx = aead_instance_ctx(inst); in pcrypt_free() local 217 struct pcrypt_instance_ctx *ctx; in pcrypt_create_aead() local
|
/crypto/asymmetric_keys/ |
D | pkcs7_parser.c | 117 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 …]
|
D | x509_cert_parser.c | 66 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 258 struct x509_parse_context *ctx = context; in x509_note_signature() local 290 struct x509_parse_context *ctx = context; in x509_note_serial() local 303 struct x509_parse_context *ctx = context; in x509_extract_name_segment() local 328 static int x509_fabricate_name(struct x509_parse_context *ctx, size_t hdrlen, in x509_fabricate_name() 407 struct x509_parse_context *ctx = context; in x509_note_issuer() local 417 struct x509_parse_context *ctx = context; in x509_note_subject() local [all …]
|