Home
last modified time | relevance | path

Searched refs:pdata (Results 1 – 14 of 14) sorted by relevance

/openssl-master/doc/man3/
A DOSSL_ENCODER_to_bio.pod14 int OSSL_ENCODER_to_data(OSSL_ENCODER_CTX *ctx, unsigned char **pdata,
31 with the output going to the I<*pdata> and I<*pdata_len>.
32 If I<*pdata> is NULL when OSSL_ENCODER_to_data() is called, a buffer will be
33 allocated using L<OPENSSL_zalloc(3)>, and I<*pdata> will be set to point at
36 If I<*pdata> is non-NULL when OSSL_ENCODER_to_data() is called, I<*pdata_len>
37 is assumed to have its size. In this case, I<*pdata> will be set to point
A DPEM_bytes_read_bio.pod11 int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm,
14 int PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm,
39 I<*pdata> with length I<*plen>. The caller must free the storage pointed
40 to by I<*pdata>.
44 returned in I<*pdata> and I<*pnm>. Accordingly, the caller must use
A DOSSL_DECODER_from_bio.pod16 int OSSL_DECODER_from_data(OSSL_DECODER_CTX *ctx, const unsigned char **pdata,
31 with input coming from I<*pdata>, I<*pdata_len> bytes long. Both I<*pdata>
33 I<*pdata> is updated to point at the location after what has been decoded,
/openssl-master/crypto/encode_decode/
A Dencoder_lib.c92 int OSSL_ENCODER_to_data(OSSL_ENCODER_CTX *ctx, unsigned char **pdata, in OSSL_ENCODER_to_data() argument
111 if (pdata != NULL && *pdata != NULL) { in OSSL_ENCODER_to_data()
127 if (pdata != NULL) { in OSSL_ENCODER_to_data()
128 if (*pdata != NULL) { in OSSL_ENCODER_to_data()
129 memcpy(*pdata, buf->data, buf->length); in OSSL_ENCODER_to_data()
130 *pdata += buf->length; in OSSL_ENCODER_to_data()
133 *pdata = (unsigned char *)buf->data; in OSSL_ENCODER_to_data()
A Ddecoder_lib.c144 int OSSL_DECODER_from_data(OSSL_DECODER_CTX *ctx, const unsigned char **pdata, in OSSL_DECODER_from_data() argument
150 if (pdata == NULL || *pdata == NULL || pdata_len == NULL) { in OSSL_DECODER_from_data()
155 membio = BIO_new_mem_buf(*pdata, (int)*pdata_len); in OSSL_DECODER_from_data()
157 *pdata_len = (size_t)BIO_get_mem_data(membio, pdata); in OSSL_DECODER_from_data()
/openssl-master/test/
A Devp_extra_test2.c751 const unsigned char *pdata = keydata[0].kder; in test_pkey_todata_null() local
753 ret = TEST_ptr(pkey = d2i_AutoPrivateKey_ex(NULL, &pdata, keydata[0].size, in test_pkey_todata_null()
774 const unsigned char *pdata = keydata[0].kder; in test_pkey_export_null() local
776 ret = TEST_ptr(pkey = d2i_AutoPrivateKey_ex(NULL, &pdata, keydata[0].size, in test_pkey_export_null()
792 const unsigned char *pdata = keydata[0].kder; in test_pkey_export() local
795 if (!TEST_ptr(pkey = d2i_AutoPrivateKey_ex(NULL, &pdata, pdata_len, in test_pkey_export()
806 pdata = keydata[0].kder; in test_pkey_export()
808 if (!TEST_ptr(rsa = d2i_RSAPrivateKey(NULL, &pdata, pdata_len)) in test_pkey_export()
A Devp_test.c1950 PBE_DATA *pdata = t->data; in scrypt_test_parse() local
1967 PBE_DATA *pdata = t->data; in pbkdf2_test_parse() local
1971 if (pdata->iter <= 0) in pbkdf2_test_parse()
1977 if (pdata->md == NULL) in pbkdf2_test_parse()
1987 PBE_DATA *pdata = t->data; in pkcs12_test_parse() local
1990 pdata->id = atoi(value); in pkcs12_test_parse()
1991 if (pdata->id <= 0) in pkcs12_test_parse()
2037 PBE_DATA *pdata = t->data; in pbe_test_parse() local
2040 return parse_bin(value, &pdata->pass, &pdata->pass_len); in pbe_test_parse()
2042 return parse_bin(value, &pdata->salt, &pdata->salt_len); in pbe_test_parse()
[all …]
A Devp_extra_test.c577 const unsigned char **pdata = &data; in load_example_key() local
584 (void)OSSL_DECODER_from_data(dctx, pdata, &data_len); in load_example_key()
/openssl-master/test/helpers/
A Dpredefined_dhparams.c49 unsigned char *pdata, size_t plen, in get_dh_from_pg() argument
56 p = BN_bin2bn(pdata, plen, NULL); in get_dh_from_pg()
/openssl-master/crypto/pem/
A Dpem_lib.c235 static int pem_bytes_read_bio_flags(unsigned char **pdata, long *plen, in pem_bytes_read_bio_flags() argument
261 *pdata = data; in pem_bytes_read_bio_flags()
278 int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm, in PEM_bytes_read_bio() argument
281 return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u, in PEM_bytes_read_bio()
285 int PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm, in PEM_bytes_read_bio_secmem() argument
288 return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u, in PEM_bytes_read_bio_secmem()
/openssl-master/include/openssl/
A Dencoder.h107 int OSSL_ENCODER_to_data(OSSL_ENCODER_CTX *ctx, unsigned char **pdata,
A Ddecoder.h116 int OSSL_DECODER_from_data(OSSL_DECODER_CTX *ctx, const unsigned char **pdata,
A Dpem.h380 int PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm,
385 int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm,
/openssl-master/crypto/store/
A Dstore_result.c248 const unsigned char *pdata = data->octet_data; in try_key_value() local
277 (void)OSSL_DECODER_from_data(decoderctx, &pdata, &pdatalen); in try_key_value()

Completed in 56 milliseconds