Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 25 of 72) sorted by relevance

123

/openssl/crypto/asn1/
H A Di2d_evp.c35 unsigned char **pp) in i2d_provided() argument
50 int pp_was_NULL = (pp == NULL || *pp == NULL); in i2d_provided()
59 if (OSSL_ENCODER_to_data(ctx, pp, &len)) { in i2d_provided()
73 int i2d_KeyParams(const EVP_PKEY *a, unsigned char **pp) in i2d_KeyParams() argument
84 return a->ameth->param_encode(a, pp); in i2d_KeyParams()
94 int i2d_PrivateKey(const EVP_PKEY *a, unsigned char **pp) in i2d_PrivateKey() argument
106 return a->ameth->old_priv_encode(a, pp); in i2d_PrivateKey()
113 ret = i2d_PKCS8_PRIV_KEY_INFO(p8, pp); in i2d_PrivateKey()
122 int i2d_PublicKey(const EVP_PKEY *a, unsigned char **pp) in i2d_PublicKey() argument
135 return i2d_RSAPublicKey(EVP_PKEY_get0_RSA(a), pp); in i2d_PublicKey()
[all …]
H A Dd2i_pr.c38 const unsigned char *p = *pp; in d2i_PrivateKey_decoder()
51 p8info = d2i_PKCS8_PRIV_KEY_INFO(NULL, pp, len); in d2i_PrivateKey_decoder()
63 *pp = p; in d2i_PrivateKey_decoder()
74 ret = OSSL_DECODER_from_data(dctx, pp, &len); in d2i_PrivateKey_decoder()
95 const unsigned char *p = *pp; in ossl_d2i_PrivateKey_legacy()
146 *pp = p; in ossl_d2i_PrivateKey_legacy()
172 return d2i_PrivateKey_ex(type, a, pp, length, NULL, NULL); in d2i_PrivateKey()
185 p = *pp; in d2i_AutoPrivateKey_legacy()
192 p = *pp; in d2i_AutoPrivateKey_legacy()
215 *pp = p; in d2i_AutoPrivateKey_legacy()
[all …]
H A Dasn1_lib.c51 const unsigned char *p = *pp; in ASN1_get_object()
102 *pp = p; in ASN1_get_object()
119 const unsigned char *p = *pp; in asn1_get_length()
152 *pp = p; in asn1_get_length()
163 unsigned char *p = *pp; in ASN1_put_object()
187 *pp = p; in ASN1_put_object()
190 int ASN1_put_eoc(unsigned char **pp) in ASN1_put_eoc() argument
192 unsigned char *p = *pp; in ASN1_put_eoc()
196 *pp = p; in ASN1_put_eoc()
202 unsigned char *p = *pp; in asn1_put_length()
[all …]
H A Da_object.c21 int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp) in i2d_ASN1_OBJECT() argument
30 if (pp == NULL || objsize == -1) in i2d_ASN1_OBJECT()
33 if (*pp == NULL) { in i2d_ASN1_OBJECT()
37 p = *pp; in i2d_ASN1_OBJECT()
47 *pp = allocated != NULL ? allocated : p + a->length; in i2d_ASN1_OBJECT()
219 p = *pp; in d2i_ASN1_OBJECT()
232 *pp = p; in d2i_ASN1_OBJECT()
252 if (len <= 0 || len > INT_MAX || pp == NULL || (p = *pp) == NULL || in ossl_c2i_ASN1_OBJECT()
279 *pp += len; in ossl_c2i_ASN1_OBJECT()
297 p = *pp; in ossl_c2i_ASN1_OBJECT()
[all …]
H A Da_int.c98 unsigned char **pp) in i2c_ibuf() argument
131 if (pp == NULL || (p = *pp) == NULL) in i2c_ibuf()
144 *pp += ret; in i2c_ibuf()
293 r = c2i_ibuf(NULL, NULL, *pp, len); in ossl_c2i_ASN1_INTEGER()
311 c2i_ibuf(ret->data, &neg, *pp, len); in ossl_c2i_ASN1_INTEGER()
318 *pp += len; in ossl_c2i_ASN1_INTEGER()
413 p = *pp; in d2i_ASN1_UINTEGER()
449 *pp = p; in d2i_ASN1_UINTEGER()
617 const unsigned char **pp, long len) in ossl_c2i_uint64_int() argument
622 buflen = c2i_ibuf(NULL, NULL, *pp, len); in ossl_c2i_uint64_int()
[all …]
H A Dasn1_local.h79 ASN1_OBJECT *ossl_c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp,
81 int ossl_i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp);
83 const unsigned char **pp, long length);
84 int ossl_i2c_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp);
85 ASN1_INTEGER *ossl_c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp,
89 int ossl_c2i_uint64_int(uint64_t *ret, int *neg, const unsigned char **pp,
H A Da_bitstr.c21 int ossl_i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp) in ossl_i2c_ASN1_BIT_STRING() argument
63 if (pp == NULL) in ossl_i2c_ASN1_BIT_STRING()
66 p = *pp; in ossl_i2c_ASN1_BIT_STRING()
75 *pp = p; in ossl_i2c_ASN1_BIT_STRING()
80 const unsigned char **pp, long len) in ossl_c2i_ASN1_BIT_STRING() argument
103 p = *pp; in ossl_c2i_ASN1_BIT_STRING()
130 *pp = p; in ossl_c2i_ASN1_BIT_STRING()
H A Dasn1_parse.c20 static int asn1_parse2(BIO *bp, const unsigned char **pp, long length,
83 int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent) in ASN1_parse() argument
85 return asn1_parse2(bp, &pp, len, 0, 0, indent, 0); in ASN1_parse()
88 int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, in ASN1_parse_dump() argument
91 return asn1_parse2(bp, &pp, len, 0, 0, indent, dump); in ASN1_parse_dump()
94 static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, in asn1_parse2() argument
114 p = *pp; in asn1_parse2()
128 if (!asn1_print_info(bp, (long)offset + (long)(op - *pp), depth, in asn1_parse2()
144 offset + (p - *pp), depth + 1, in asn1_parse2()
159 offset + (p - *pp), depth + 1, in asn1_parse2()
[all …]
H A Dd2i_pu.c28 EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, in d2i_PublicKey() argument
59 if ((ret->pkey.rsa = d2i_RSAPublicKey(NULL, pp, length)) == NULL) { in d2i_PublicKey()
66 if (!d2i_DSAPublicKey(&ret->pkey.dsa, pp, length)) { in d2i_PublicKey()
79 if (!o2i_ECPublicKey(&ret->pkey.ec, pp, length)) { in d2i_PublicKey()
/openssl/crypto/x509/
H A Dx_pubkey.c499 q = *pp; in d2i_PUBKEY_int()
523 *pp = q; in d2i_PUBKEY_int()
611 q = *pp; in d2i_RSA_PUBKEY()
619 *pp = q; in d2i_RSA_PUBKEY()
652 q = *pp; in ossl_d2i_DH_PUBKEY()
661 *pp = q; in ossl_d2i_DH_PUBKEY()
693 q = *pp; in ossl_d2i_DHx_PUBKEY()
702 *pp = q; in ossl_d2i_DHx_PUBKEY()
736 q = *pp; in d2i_DSA_PUBKEY()
744 *pp = q; in d2i_DSA_PUBKEY()
[all …]
H A Dx_x509.c197 q = *pp; in d2i_X509_AUX()
206 length -= q - *pp; in d2i_X509_AUX()
209 *pp = q; in d2i_X509_AUX()
229 unsigned char *start = pp != NULL ? *pp : NULL; in i2d_x509_aux_internal()
236 length = i2d_X509(a, pp); in i2d_x509_aux_internal()
240 tmplen = i2d_X509_CERT_AUX(a->aux, pp); in i2d_x509_aux_internal()
243 *pp = start; in i2d_x509_aux_internal()
266 if (pp == NULL || *pp != NULL) in i2d_X509_AUX()
274 *pp = tmp = OPENSSL_malloc(length); in i2d_X509_AUX()
281 OPENSSL_free(*pp); in i2d_X509_AUX()
[all …]
/openssl/test/
H A Dparams_conversion_test.c52 const PAIR *pp = s->pairs; in param_conversion_load_stanza() local
59 for (i = 0; i < s->numpairs; i++, pp++) { in param_conversion_load_stanza()
61 if (OPENSSL_strcasecmp(pp->key, "type") == 0) { in param_conversion_load_stanza()
71 } else if (OPENSSL_strcasecmp(pp->key, "int32") == 0) { in param_conversion_load_stanza()
76 if (OPENSSL_strcasecmp(pp->value, "invalid") != 0) { in param_conversion_load_stanza()
78 pc->i32 = (int32_t)strtoimax(pp->value, &p, 10); in param_conversion_load_stanza()
80 } else if (OPENSSL_strcasecmp(pp->key, "int64") == 0) { in param_conversion_load_stanza()
85 if (OPENSSL_strcasecmp(pp->value, "invalid") != 0) { in param_conversion_load_stanza()
87 pc->i64 = (int64_t)strtoimax(pp->value, &p, 10); in param_conversion_load_stanza()
114 pc->d = strtod(pp->value, &p); in param_conversion_load_stanza()
[all …]
/openssl/crypto/ct/
H A Dct_oct.c264 n2s(*pp, list_len); in STACK_OF()
290 n2s(*pp, sct_len); in STACK_OF()
323 if (pp != NULL) { in i2o_SCT_LIST()
333 p = *pp + 2; in i2o_SCT_LIST()
338 if (pp != NULL) { in i2o_SCT_LIST()
354 if (pp != NULL) { in i2o_SCT_LIST()
355 p = *pp; in i2o_SCT_LIST()
358 *pp += len2; in i2o_SCT_LIST()
365 *pp = NULL; in i2o_SCT_LIST()
377 p = *pp; in STACK_OF()
[all …]
H A Dct_x509v3.c50 const unsigned char **pp, in STACK_OF()
53 STACK_OF(SCT) *s = d2i_SCT_LIST(a, pp, len); in STACK_OF()
64 const unsigned char **pp, in STACK_OF()
67 STACK_OF(SCT) *s = d2i_SCT_LIST(a, pp, len); in STACK_OF()
/openssl/include/crypto/
H A Dx509.h336 X509_PUBKEY *ossl_d2i_X509_PUBKEY_INTERNAL(const unsigned char **pp,
342 int ossl_i2d_RSA_PSS_PUBKEY(const RSA *a, unsigned char **pp);
347 DH *ossl_d2i_DH_PUBKEY(DH **a, const unsigned char **pp, long length);
348 int ossl_i2d_DH_PUBKEY(const DH *a, unsigned char **pp);
350 int ossl_i2d_DHx_PUBKEY(const DH *a, unsigned char **pp);
355 int ossl_i2d_ED25519_PUBKEY(const ECX_KEY *a, unsigned char **pp);
357 const unsigned char **pp, long length);
358 int ossl_i2d_ED448_PUBKEY(const ECX_KEY *a, unsigned char **pp);
361 int ossl_i2d_X25519_PUBKEY(const ECX_KEY *a, unsigned char **pp);
363 const unsigned char **pp, long length);
[all …]
/openssl/crypto/rsa/
H A Drsa_mp.c18 BN_clear_free(pinfo->pp); in ossl_rsa_multip_info_free_ex()
44 if ((pinfo->pp = BN_secure_new()) == NULL) in ossl_rsa_multip_info_new()
53 BN_free(pinfo->pp); in ossl_rsa_multip_info_new()
80 if (pinfo->pp == NULL) { in ossl_rsa_multip_calc_product()
81 pinfo->pp = BN_secure_new(); in ossl_rsa_multip_calc_product()
82 if (pinfo->pp == NULL) in ossl_rsa_multip_calc_product()
85 if (!BN_mul(pinfo->pp, p1, p2, ctx)) in ossl_rsa_multip_calc_product()
88 p1 = pinfo->pp; in ossl_rsa_multip_calc_product()
/openssl/test/testutil/
H A Dstanza.c88 PAIR *pp = s->pairs; in test_readstanza() local
137 || !TEST_ptr(pp->key = OPENSSL_strdup(key)) in test_readstanza()
138 || !TEST_ptr(pp->value = OPENSSL_strdup(value))) in test_readstanza()
140 pp++; in test_readstanza()
149 PAIR *pp = s->pairs; in test_clearstanza() local
152 for ( ; --i >= 0; pp++) { in test_clearstanza()
153 OPENSSL_free(pp->key); in test_clearstanza()
154 OPENSSL_free(pp->value); in test_clearstanza()
/openssl/external/perl/Text-Template-1.56/lib/Text/Template/
H A DPreprocess.pm16 my $pp = $args{PREPROCESSOR} || $self->{PREPROCESSOR};
18 if ($pp) {
23 &$pp;
33 my ($self, $pp) = @_;
37 $self->{PREPROCESSOR} = $pp if @_ > 1; # OK to pass $pp=undef
/openssl/apps/
H A Dsrp.c40 char **pp; in get_index() local
46 pp = sk_OPENSSL_PSTRING_value(db->db->data, i); in get_index()
47 if (pp[DB_srptype][0] == DB_SRP_INDEX in get_index()
48 && strcmp(id, pp[DB_srpid]) == 0) in get_index()
55 if (pp[DB_srptype][0] != DB_SRP_INDEX in get_index()
56 && strcmp(id, pp[DB_srpid]) == 0) in get_index()
86 if (pp[DB_srptype][0] != 'I') { in print_user()
243 char *srpvfile = NULL, **pp, *prog; in srp_main() local
391 if (pp[DB_srptype][0] == DB_SRP_INDEX) { in srp_main()
594 if (pp[DB_srptype][0] == 'v') { in srp_main()
[all …]
/openssl/crypto/txt_db/
H A Dtxt_db.c28 OPENSSL_STRING *pp; in TXT_DB_read() local
77 pp = (char **)p; in TXT_DB_read()
80 pp[n++] = p; in TXT_DB_read()
95 pp[n++] = p; in TXT_DB_read()
104 OPENSSL_free(pp); in TXT_DB_read()
108 pp[n] = p; in TXT_DB_read()
110 OPENSSL_free(pp); in TXT_DB_read()
190 char *p, **pp, *f; in TXT_DB_write() local
203 if (pp[j] != NULL) in TXT_DB_write()
204 l += strlen(pp[j]); in TXT_DB_write()
[all …]
/openssl/crypto/ocsp/
H A Dv3_ocsp.c31 static int i2d_ocsp_nonce(const void *a, unsigned char **pp);
32 static void *d2i_ocsp_nonce(void *a, const unsigned char **pp, long length);
173 static int i2d_ocsp_nonce(const void *a, unsigned char **pp) in i2d_ocsp_nonce() argument
176 if (pp) { in i2d_ocsp_nonce()
177 memcpy(*pp, os->data, os->length); in i2d_ocsp_nonce()
178 *pp += os->length; in i2d_ocsp_nonce()
183 static void *d2i_ocsp_nonce(void *a, const unsigned char **pp, long length) in d2i_ocsp_nonce() argument
194 if (!ASN1_OCTET_STRING_set(os, *pp, length)) in d2i_ocsp_nonce()
197 *pp += length; in d2i_ocsp_nonce()
/openssl/crypto/dh/
H A Ddh_asn1.c88 const unsigned char **pp, long length);
89 int i2d_int_dhx(const int_dhx942_dh *a, unsigned char **pp);
93 DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length) in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname()
102 dhx = d2i_int_dhx(NULL, pp, length); in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname()
135 int i2d_DHxparams(const DH *dh, unsigned char **pp) in i2d_DHxparams() argument
163 ret = i2d_int_dhx(&dhx, pp); in i2d_DHxparams()
/openssl/doc/man3/
H A Dd2i_PrivateKey.pod16 EVP_PKEY *d2i_PrivateKey_ex(int type, EVP_PKEY **a, const unsigned char **pp,
19 EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp,
21 EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp,
23 EVP_PKEY *d2i_KeyParams(int type, EVP_PKEY **a, const unsigned char **pp,
25 EVP_PKEY *d2i_AutoPrivateKey_ex(EVP_PKEY **a, const unsigned char **pp,
28 EVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp,
31 int i2d_PrivateKey(const EVP_PKEY *a, unsigned char **pp);
32 int i2d_PublicKey(const EVP_PKEY *a, unsigned char **pp);
33 int i2d_KeyParams(const EVP_PKEY *a, unsigned char **pp);
89 All the functions that operate on data in memory update the data pointer I<*pp>
/openssl/include/openssl/
H A Dct.h.in350 * If "pp" is not NULL and "*pp" is null, function will allocate a new pointer
353 * If "pp" is NULL and "*pp" is not NULL, caller is responsible for ensuring
354 * that "*pp" is large enough to accept all of the serialized data.
358 __owur int i2o_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);
364 * "**pp" and "*pp" must not be NULL.
370 STACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,
377 * If "pp" is not NULL and "*pp" is null, function will allocate a new pointer
380 * If "pp" is NULL and "*pp" is not NULL, caller is responsible for ensuring
381 * that "*pp" is large enough to accept all of the serialized data.
385 __owur int i2d_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);
[all …]
/openssl/crypto/pem/
H A Dpem_info.c59 void *pp; in STACK_OF() local
111 pp = &(xi->x509); in STACK_OF()
121 pp = &(xi->crl); in STACK_OF()
144 pp = &xi->x_pkey->dec_pkey; in STACK_OF()
150 pp = NULL; in STACK_OF()
163 if (d2i_PrivateKey_ex(ptype, pp, &p, len, in STACK_OF()
168 } else if (d2i(pp, &p, len) == NULL) { in STACK_OF()

Completed in 51 milliseconds

123