Home
last modified time | relevance | path

Searched refs:der_bytes (Results 1 – 3 of 3) sorted by relevance

/external/boringssl/src/crypto/x509/
Dpkcs7.c38 static int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs) { in pkcs7_parse_header() argument
44 *der_bytes = NULL; in pkcs7_parse_header()
45 if (!CBS_asn1_ber_to_der(cbs, der_bytes, &der_len)) { in pkcs7_parse_header()
48 if (*der_bytes != NULL) { in pkcs7_parse_header()
49 CBS_init(&in, *der_bytes, der_len); in pkcs7_parse_header()
84 if (*der_bytes) { in pkcs7_parse_header()
85 OPENSSL_free(*der_bytes); in pkcs7_parse_header()
86 *der_bytes = NULL; in pkcs7_parse_header()
94 uint8_t *der_bytes = NULL; in PKCS7_get_certificates() local
98 if (!pkcs7_parse_header(&der_bytes, &signed_data, cbs)) { in PKCS7_get_certificates()
[all …]
Dpkcs7_test.c470 static int test_cert_reparse(const uint8_t *der_bytes, size_t der_len) { in test_cert_reparse() argument
478 CBS_init(&pkcs7, der_bytes, der_len); in test_cert_reparse()
534 static int test_crl_reparse(const uint8_t *der_bytes, size_t der_len) { in test_crl_reparse() argument
542 CBS_init(&pkcs7, der_bytes, der_len); in test_crl_reparse()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c678 uint8_t *der_bytes = NULL; in PKCS12_handle_content_infos() local
695 if (!CBS_asn1_ber_to_der(content_infos, &der_bytes, &der_len)) { in PKCS12_handle_content_infos()
700 if (der_bytes != NULL) { in PKCS12_handle_content_infos()
701 CBS_init(&in, der_bytes, der_len); in PKCS12_handle_content_infos()
730 OPENSSL_free(der_bytes); in PKCS12_handle_content_infos()
903 uint8_t *der_bytes = NULL; in PKCS12_get_key_and_certs() local
912 if (!CBS_asn1_ber_to_der(ber_in, &der_bytes, &der_len)) { in PKCS12_get_key_and_certs()
916 if (der_bytes != NULL) { in PKCS12_get_key_and_certs()
917 CBS_init(&in, der_bytes, der_len); in PKCS12_get_key_and_certs()
1046 OPENSSL_free(der_bytes); in PKCS12_get_key_and_certs()