Home
last modified time | relevance | path

Searched refs:pval (Results 1 - 25 of 254) sorted by relevance

1234567891011

/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Dtasn_new.c18 static int asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
21 static int asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
23 static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
24 static int asn1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt,
26 static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
27 static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
49 int ossl_asn1_item_ex_new_intern(ASN1_VALUE **pval, const ASN1_ITEM *it, in ossl_asn1_item_ex_new_intern() argument
52 return asn1_item_embed_new(pval, it, 0, libctx, propq); in ossl_asn1_item_ex_new_intern()
55 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_new() argument
57 return asn1_item_embed_new(pval, i in ASN1_item_ex_new()
60 asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed, OSSL_LIB_CTX *libctx, const char *propq) asn1_item_embed_new() argument
174 asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) asn1_item_clear() argument
207 asn1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, OSSL_LIB_CTX *libctx, const char *propq) asn1_template_new() argument
247 asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) asn1_template_clear() argument
261 asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) asn1_primitive_new() argument
329 asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) asn1_primitive_clear() argument
[all...]
H A Dtasn_fre.c23 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument
25 ossl_asn1_item_embed_free(pval, it, 0); in ASN1_item_ex_free()
28 void ossl_asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_item_embed_free() argument
36 if (pval == NULL) in ossl_asn1_item_embed_free()
38 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ossl_asn1_item_embed_free()
49 ossl_asn1_template_free(pval, it->templates); in ossl_asn1_item_embed_free()
51 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free()
55 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free()
60 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in ossl_asn1_item_embed_free()
64 i = ossl_asn1_get_choice_selector(pval, i in ossl_asn1_item_embed_free()
122 ossl_asn1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) ossl_asn1_template_free() argument
146 ossl_asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) ossl_asn1_primitive_free() argument
[all...]
H A Dx_bignum.c24 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
25 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
26 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
28 static int bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
30 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
32 static int bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
34 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
65 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_new() argument
67 *pval = (ASN1_VALUE *)BN_new(); in bn_new()
68 if (*pval ! in bn_new()
74 bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it) bn_secure_new() argument
83 bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it) bn_free() argument
94 bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) bn_i2c() argument
115 bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) bn_c2i() argument
130 bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) bn_secure_c2i() argument
149 bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) bn_print() argument
[all...]
H A Dx_int64.c29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_new() argument
31 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint64_t))) == NULL) { in uint64_new()
38 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() argument
40 OPENSSL_free(*pval); in uint64_free()
41 *pval = NULL; in uint64_free()
44 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_clear() argument
46 **(uint64_t **)pval = 0; in uint64_clear()
49 static int uint64_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in uint64_i2c() argument
55 char *cp = (char *)*pval; in uint64_i2c()
73 static int uint64_c2i(ASN1_VALUE **pval, cons argument
114 uint64_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) uint64_print() argument
124 uint32_new(ASN1_VALUE **pval, const ASN1_ITEM *it) uint32_new() argument
133 uint32_free(ASN1_VALUE **pval, const ASN1_ITEM *it) uint32_free() argument
139 uint32_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) uint32_clear() argument
144 uint32_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) uint32_i2c() argument
175 uint32_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) uint32_c2i() argument
223 uint32_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) uint32_print() argument
[all...]
H A Dtasn_utl.c29 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it) in ossl_asn1_get_choice_selector() argument
31 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector()
36 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval, in ossl_asn1_get_choice_selector_const() argument
39 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector_const()
48 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value, in ossl_asn1_set_choice_selector() argument
53 sel = offset2ptr(*pval, it->utype); in ossl_asn1_set_choice_selector()
68 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it) in ossl_asn1_do_lock() argument
81 lck = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock()
82 lock = offset2ptr(*pval, aux->ref_lock); in ossl_asn1_do_lock()
112 static ASN1_ENCODING *asn1_get_enc_ptr(ASN1_VALUE **pval, cons argument
124 asn1_get_const_enc_ptr(const ASN1_VALUE **pval, const ASN1_ITEM *it) asn1_get_const_enc_ptr() argument
137 ossl_asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it) ossl_asn1_enc_init() argument
148 ossl_asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it) ossl_asn1_enc_free() argument
160 ossl_asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, const ASN1_ITEM *it) ossl_asn1_enc_save() argument
182 ossl_asn1_enc_restore(int *len, unsigned char **out, const ASN1_VALUE **pval, const ASN1_ITEM *it) ossl_asn1_enc_restore() argument
199 ossl_asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) ossl_asn1_get_field_ptr() argument
211 ossl_asn1_get_const_field_ptr(const ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) ossl_asn1_get_const_field_ptr() argument
[all...]
H A Dtasn_enc.c19 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out,
25 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
29 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype,
83 int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, in ASN1_item_ex_i2d() argument
92 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ASN1_item_ex_i2d()
104 return asn1_template_ex_i2d(pval, out, it->templates, in ASN1_item_ex_i2d()
106 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass); in ASN1_item_ex_i2d()
117 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass); in ASN1_item_ex_i2d()
128 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d()
130 i = ossl_asn1_get_choice_selector_const(pval, i in ASN1_item_ex_i2d()
216 asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, const ASN1_TEMPLATE *tt, int tag, int iclass) asn1_template_ex_i2d() argument
468 asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, int tag, int aclass) asn1_i2d_ex_primitive() argument
528 asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype, const ASN1_ITEM *it) asn1_ex_i2c() argument
[all...]
H A Dx_long.c21 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
22 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
24 static int long_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
26 static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
28 static int long_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
49 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_new() argument
51 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in long_new()
55 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_free() argument
57 memcpy(pval, in long_free()
85 long_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) long_i2c() argument
128 long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) long_c2i() argument
189 long_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) long_print() argument
[all...]
H A Dtasn_dec.c28 static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in,
47 static int asn1_template_ex_d2i(ASN1_VALUE **pval,
57 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval,
62 static int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
107 static int asn1_item_ex_d2i_intern(ASN1_VALUE **pval, const unsigned char **in, in asn1_item_ex_d2i_intern() argument
114 if (pval == NULL || it == NULL) { in asn1_item_ex_d2i_intern()
118 rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0, in asn1_item_ex_d2i_intern()
121 ASN1_item_ex_free(pval, it); in asn1_item_ex_d2i_intern()
125 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, in ASN1_item_ex_d2i() argument
129 return asn1_item_ex_d2i_intern(pval, i in ASN1_item_ex_d2i()
133 ASN1_item_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, const char *propq) ASN1_item_d2i_ex() argument
150 ASN1_item_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it) ASN1_item_d2i() argument
162 asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx, int depth, OSSL_LIB_CTX *libctx, const char *propq) asn1_item_embed_d2i() argument
698 asn1_d2i_ex_primitive(ASN1_VALUE **pval, const unsigned char **in, long inlen, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) asn1_d2i_ex_primitive() argument
831 asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) asn1_ex_c2i() argument
[all...]
H A Dasn1_local.h50 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
51 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval,
53 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value,
56 ASN1_VALUE **ossl_asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
57 const ASN1_VALUE **ossl_asn1_get_const_field_ptr(const ASN1_VALUE **pval,
64 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
66 void ossl_asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
67 void ossl_asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
68 int ossl_asn1_enc_restore(int *len, unsigned char **out, const ASN1_VALUE **pval,
70 int ossl_asn1_enc_save(ASN1_VALUE **pval, cons
[all...]
/third_party/openssl/crypto/asn1/
H A Dtasn_new.c18 static int asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
21 static int asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
23 static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
24 static int asn1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt,
26 static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
27 static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
49 int ossl_asn1_item_ex_new_intern(ASN1_VALUE **pval, const ASN1_ITEM *it, in ossl_asn1_item_ex_new_intern() argument
52 return asn1_item_embed_new(pval, it, 0, libctx, propq); in ossl_asn1_item_ex_new_intern()
55 int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_new() argument
57 return asn1_item_embed_new(pval, i in ASN1_item_ex_new()
60 asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed, OSSL_LIB_CTX *libctx, const char *propq) asn1_item_embed_new() argument
174 asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) asn1_item_clear() argument
207 asn1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, OSSL_LIB_CTX *libctx, const char *propq) asn1_template_new() argument
247 asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) asn1_template_clear() argument
261 asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) asn1_primitive_new() argument
329 asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) asn1_primitive_clear() argument
[all...]
H A Dtasn_fre.c23 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument
25 ossl_asn1_item_embed_free(pval, it, 0); in ASN1_item_ex_free()
28 void ossl_asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_item_embed_free() argument
36 if (pval == NULL) in ossl_asn1_item_embed_free()
38 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ossl_asn1_item_embed_free()
49 ossl_asn1_template_free(pval, it->templates); in ossl_asn1_item_embed_free()
51 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free()
55 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free()
60 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in ossl_asn1_item_embed_free()
64 i = ossl_asn1_get_choice_selector(pval, i in ossl_asn1_item_embed_free()
122 ossl_asn1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) ossl_asn1_template_free() argument
146 ossl_asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) ossl_asn1_primitive_free() argument
[all...]
H A Dx_bignum.c24 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
25 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
26 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
28 static int bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
30 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
32 static int bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
34 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
65 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_new() argument
67 *pval = (ASN1_VALUE *)BN_new(); in bn_new()
68 if (*pval ! in bn_new()
74 bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it) bn_secure_new() argument
83 bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it) bn_free() argument
94 bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) bn_i2c() argument
115 bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) bn_c2i() argument
130 bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) bn_secure_c2i() argument
149 bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) bn_print() argument
[all...]
H A Dx_int64.c29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_new() argument
31 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint64_t))) == NULL) { in uint64_new()
38 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() argument
40 OPENSSL_free(*pval); in uint64_free()
41 *pval = NULL; in uint64_free()
44 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_clear() argument
46 **(uint64_t **)pval = 0; in uint64_clear()
49 static int uint64_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in uint64_i2c() argument
55 char *cp = (char *)*pval; in uint64_i2c()
73 static int uint64_c2i(ASN1_VALUE **pval, cons argument
114 uint64_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) uint64_print() argument
124 uint32_new(ASN1_VALUE **pval, const ASN1_ITEM *it) uint32_new() argument
133 uint32_free(ASN1_VALUE **pval, const ASN1_ITEM *it) uint32_free() argument
139 uint32_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) uint32_clear() argument
144 uint32_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) uint32_i2c() argument
175 uint32_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) uint32_c2i() argument
223 uint32_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) uint32_print() argument
[all...]
H A Dtasn_utl.c29 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it) in ossl_asn1_get_choice_selector() argument
31 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector()
36 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval, in ossl_asn1_get_choice_selector_const() argument
39 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector_const()
48 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value, in ossl_asn1_set_choice_selector() argument
53 sel = offset2ptr(*pval, it->utype); in ossl_asn1_set_choice_selector()
68 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it) in ossl_asn1_do_lock() argument
81 lck = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock()
82 lock = offset2ptr(*pval, aux->ref_lock); in ossl_asn1_do_lock()
112 static ASN1_ENCODING *asn1_get_enc_ptr(ASN1_VALUE **pval, cons argument
124 asn1_get_const_enc_ptr(const ASN1_VALUE **pval, const ASN1_ITEM *it) asn1_get_const_enc_ptr() argument
137 ossl_asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it) ossl_asn1_enc_init() argument
148 ossl_asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it) ossl_asn1_enc_free() argument
160 ossl_asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, const ASN1_ITEM *it) ossl_asn1_enc_save() argument
182 ossl_asn1_enc_restore(int *len, unsigned char **out, const ASN1_VALUE **pval, const ASN1_ITEM *it) ossl_asn1_enc_restore() argument
199 ossl_asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) ossl_asn1_get_field_ptr() argument
211 ossl_asn1_get_const_field_ptr(const ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) ossl_asn1_get_const_field_ptr() argument
[all...]
H A Dtasn_enc.c19 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out,
25 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
29 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype,
83 int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, in ASN1_item_ex_i2d() argument
92 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ASN1_item_ex_i2d()
104 return asn1_template_ex_i2d(pval, out, it->templates, in ASN1_item_ex_i2d()
106 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass); in ASN1_item_ex_i2d()
117 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass); in ASN1_item_ex_i2d()
128 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d()
130 i = ossl_asn1_get_choice_selector_const(pval, i in ASN1_item_ex_i2d()
216 asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, const ASN1_TEMPLATE *tt, int tag, int iclass) asn1_template_ex_i2d() argument
468 asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, int tag, int aclass) asn1_i2d_ex_primitive() argument
528 asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype, const ASN1_ITEM *it) asn1_ex_i2c() argument
[all...]
H A Dx_long.c21 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
22 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
24 static int long_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
26 static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
28 static int long_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
49 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_new() argument
51 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in long_new()
55 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_free() argument
57 memcpy(pval, in long_free()
85 long_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) long_i2c() argument
128 long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) long_c2i() argument
189 long_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) long_print() argument
[all...]
H A Dtasn_dec.c28 static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in,
47 static int asn1_template_ex_d2i(ASN1_VALUE **pval,
57 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval,
62 static int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
107 static int asn1_item_ex_d2i_intern(ASN1_VALUE **pval, const unsigned char **in, in asn1_item_ex_d2i_intern() argument
114 if (pval == NULL || it == NULL) { in asn1_item_ex_d2i_intern()
118 rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0, in asn1_item_ex_d2i_intern()
121 ASN1_item_ex_free(pval, it); in asn1_item_ex_d2i_intern()
125 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, in ASN1_item_ex_d2i() argument
129 return asn1_item_ex_d2i_intern(pval, i in ASN1_item_ex_d2i()
133 ASN1_item_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, const char *propq) ASN1_item_d2i_ex() argument
150 ASN1_item_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it) ASN1_item_d2i() argument
162 asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx, int depth, OSSL_LIB_CTX *libctx, const char *propq) asn1_item_embed_d2i() argument
698 asn1_d2i_ex_primitive(ASN1_VALUE **pval, const unsigned char **in, long inlen, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) asn1_d2i_ex_primitive() argument
831 asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) asn1_ex_c2i() argument
[all...]
H A Dasn1_local.h50 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
51 int ossl_asn1_get_choice_selector_const(const ASN1_VALUE **pval,
53 int ossl_asn1_set_choice_selector(ASN1_VALUE **pval, int value,
56 ASN1_VALUE **ossl_asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
57 const ASN1_VALUE **ossl_asn1_get_const_field_ptr(const ASN1_VALUE **pval,
64 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
66 void ossl_asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
67 void ossl_asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
68 int ossl_asn1_enc_restore(int *len, unsigned char **out, const ASN1_VALUE **pval,
70 int ossl_asn1_enc_save(ASN1_VALUE **pval, cons
[all...]
/third_party/node/deps/openssl/openssl/crypto/rsa/
H A Drsa_asn1.c28 static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rsa_cb() argument
32 *pval = (ASN1_VALUE *)RSA_new(); in rsa_cb()
33 if (*pval != NULL) in rsa_cb()
37 RSA_free((RSA *)*pval); in rsa_cb()
38 *pval = NULL; in rsa_cb()
41 if (((RSA *)*pval)->version != RSA_ASN1_VERSION_MULTI) { in rsa_cb()
45 return (ossl_rsa_multip_calc_product((RSA *)*pval) == 1) ? 2 : 0; in rsa_cb()
77 static int rsa_pss_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
81 RSA_PSS_PARAMS *pss = (RSA_PSS_PARAMS *)*pval;
98 static int rsa_oaep_cb(int operation, ASN1_VALUE **pval, cons
[all...]
/third_party/openssl/crypto/rsa/
H A Drsa_asn1.c28 static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in rsa_cb() argument
32 *pval = (ASN1_VALUE *)RSA_new(); in rsa_cb()
33 if (*pval != NULL) in rsa_cb()
37 RSA_free((RSA *)*pval); in rsa_cb()
38 *pval = NULL; in rsa_cb()
41 if (((RSA *)*pval)->version != RSA_ASN1_VERSION_MULTI) { in rsa_cb()
45 return (ossl_rsa_multip_calc_product((RSA *)*pval) == 1) ? 2 : 0; in rsa_cb()
77 static int rsa_pss_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
81 RSA_PSS_PARAMS *pss = (RSA_PSS_PARAMS *)*pval;
98 static int rsa_oaep_cb(int operation, ASN1_VALUE **pval, cons
[all...]
/third_party/node/deps/openssl/openssl/crypto/dsa/
H A Ddsa_asn1.c25 static int dsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in dsa_cb() argument
29 *pval = (ASN1_VALUE *)DSA_new(); in dsa_cb()
30 if (*pval != NULL) in dsa_cb()
34 DSA_free((DSA *)*pval); in dsa_cb()
35 *pval = NULL; in dsa_cb()
/third_party/openssl/crypto/dsa/
H A Ddsa_asn1.c25 static int dsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, in dsa_cb() argument
29 *pval = (ASN1_VALUE *)DSA_new(); in dsa_cb()
30 if (*pval != NULL) in dsa_cb()
34 DSA_free((DSA *)*pval); in dsa_cb()
35 *pval = NULL; in dsa_cb()
/third_party/openssl/crypto/cms/
H A Dcms_asn1.c46 static int cms_si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
50 CMS_SignerInfo *si = (CMS_SignerInfo *)*pval;
93 static int cms_ec_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
96 CMS_EncryptedContentInfo *ec = (CMS_EncryptedContentInfo *)*pval;
132 static int cms_rek_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
135 CMS_RecipientEncryptedKey *rek = (CMS_RecipientEncryptedKey *)*pval;
158 static int cms_kari_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
161 CMS_KeyAgreeRecipientInfo *kari = (CMS_KeyAgreeRecipientInfo *)*pval;
209 static int cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
213 CMS_RecipientInfo *ri = (CMS_RecipientInfo *)*pval;
304 cms_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) cms_cb() argument
[all...]
/third_party/node/deps/openssl/openssl/crypto/x509/
H A Dx_pubkey.c85 static void x509_pubkey_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
89 if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) {
95 *pval = NULL;
99 static int x509_pubkey_ex_populate(ASN1_VALUE **pval, const ASN1_ITEM *it)
101 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval;
110 static int x509_pubkey_ex_new_ex(ASN1_VALUE **pval, const ASN1_ITEM *it,
122 *pval = (ASN1_VALUE *)ret;
128 static int x509_pubkey_ex_d2i_ex(ASN1_VALUE **pval,
141 if (*pval
1004 X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj, int ptype, void *pval, unsigned char *penc, int penclen) X509_PUBKEY_set0_param() argument
[all...]
/third_party/openssl/crypto/x509/
H A Dx_pubkey.c85 static void x509_pubkey_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
89 if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) {
95 *pval = NULL;
99 static int x509_pubkey_ex_populate(ASN1_VALUE **pval, const ASN1_ITEM *it)
101 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval;
110 static int x509_pubkey_ex_new_ex(ASN1_VALUE **pval, const ASN1_ITEM *it,
122 *pval = (ASN1_VALUE *)ret;
128 static int x509_pubkey_ex_d2i_ex(ASN1_VALUE **pval,
141 if (*pval
1004 X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj, int ptype, void *pval, unsigned char *penc, int penclen) X509_PUBKEY_set0_param() argument
[all...]

Completed in 9 milliseconds

1234567891011