/third_party/openssl/crypto/x509/ |
D | x509spki.c | 60 int der_len; in NETSCAPE_SPKI_b64_encode() local 61 der_len = i2d_NETSCAPE_SPKI(spki, NULL); in NETSCAPE_SPKI_b64_encode() 62 der_spki = OPENSSL_malloc(der_len); in NETSCAPE_SPKI_b64_encode() 63 b64_str = OPENSSL_malloc(der_len * 2); in NETSCAPE_SPKI_b64_encode() 72 EVP_EncodeBlock((unsigned char *)b64_str, der_spki, der_len); in NETSCAPE_SPKI_b64_encode()
|
/third_party/libwebsockets/lib/tls/ |
D | tls-jit-trust.c | 378 lws_tls_jit_trust_cert_info(const uint8_t *der, size_t der_len) in lws_tls_jit_trust_cert_info() argument 387 if (!lws_x509_parse_from_pem(x, der, der_len)) { in lws_tls_jit_trust_cert_info() 402 lwsl_hexdump_err(der, der_len); in lws_tls_jit_trust_cert_info() 418 const uint8_t *der, size_t der_len) in lws_tls_jit_trust_got_cert_cb() argument 467 inf->der[inf->ders] = lws_malloc(der_len, __func__); in lws_tls_jit_trust_got_cert_cb() 470 memcpy(inf->der[inf->ders], der, der_len); in lws_tls_jit_trust_got_cert_cb() 471 inf->der_len[inf->ders] = (short)der_len; in lws_tls_jit_trust_got_cert_cb() 574 info.client_ssl_ca_mem_len = (unsigned int)der_len; in lws_tls_jit_trust_got_cert_cb() 578 info.client_ssl_ca_mem_len = (unsigned int)inf->der_len[0]; in lws_tls_jit_trust_got_cert_cb() 604 (size_t)inf->der_len[n]); in lws_tls_jit_trust_got_cert_cb() [all …]
|
D | private-jit-trust.h | 102 short der_len[2]; member
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_x509write.function | 89 int der_len = -1; 128 der_len = mbedtls_x509write_csr_der( &req, buf, sizeof( buf ), 131 TEST_ASSERT( der_len >= 0 ); 133 if( der_len == 0 ) 136 ret = mbedtls_x509write_csr_der( &req, buf, (size_t)( der_len - 1 ), 216 int der_len = -1; 301 der_len = mbedtls_x509write_crt_der( &crt, buf, sizeof( buf ), 304 TEST_ASSERT( der_len >= 0 ); 306 if( der_len == 0 ) 309 ret = mbedtls_x509write_crt_der( &crt, buf, (size_t)( der_len - 1 ),
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/ |
D | sae_pk_gen.c | 20 size_t der_len; in main() local 59 der = os_readfile(argv[1], &der_len); in main() 66 key = crypto_ec_key_parse_priv((u8 *) der, der_len); in main() 134 b64 = base64_encode(der, der_len, NULL); in main()
|
/third_party/openssl/crypto/ct/ |
D | ct_sct_ctx.c | 199 int der_len; in ct_public_key_hash() local 212 der_len = i2d_X509_PUBKEY(pkey, &der); in ct_public_key_hash() 213 if (der_len <= 0) in ct_public_key_hash() 216 if (!EVP_Digest(der, der_len, md, &md_len, EVP_sha256(), NULL)) in ct_public_key_hash()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
D | tlsv1_cred.c | 112 size_t der_len; in tlsv1_add_cert() local 133 der = base64_decode((const char *) pos, end - pos, &der_len); in tlsv1_add_cert() 140 if (tlsv1_add_cert_der(chain, der, der_len) < 0) { in tlsv1_add_cert() 270 size_t der_len; in tlsv1_set_key_pem() local 296 der = base64_decode((const char *) pos, end - pos, &der_len); in tlsv1_set_key_pem() 299 pkey = crypto_private_key_import(der, der_len, NULL); in tlsv1_set_key_pem() 311 size_t der_len; in tlsv1_set_key_enc_pem() local 324 der = base64_decode((const char *) pos, end - pos, &der_len); in tlsv1_set_key_enc_pem() 327 pkey = crypto_private_key_import(der, der_len, passwd); in tlsv1_set_key_enc_pem() 1141 size_t der_len; in tlsv1_set_dhparams_blob() local [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
D | tlsv1_cred.c | 112 size_t der_len; in tlsv1_add_cert() local 133 der = base64_decode(pos, end - pos, &der_len); in tlsv1_add_cert() 140 if (tlsv1_add_cert_der(chain, der, der_len) < 0) { in tlsv1_add_cert() 270 size_t der_len; in tlsv1_set_key_pem() local 296 der = base64_decode(pos, end - pos, &der_len); in tlsv1_set_key_pem() 299 pkey = crypto_private_key_import(der, der_len, NULL); in tlsv1_set_key_pem() 311 size_t der_len; in tlsv1_set_key_enc_pem() local 324 der = base64_decode(pos, end - pos, &der_len); in tlsv1_set_key_enc_pem() 327 pkey = crypto_private_key_import(der, der_len, passwd); in tlsv1_set_key_enc_pem() 1208 size_t der_len; in tlsv1_set_dhparams_blob() local [all …]
|
/third_party/openssl/crypto/asn1/ |
D | a_strex.c | 269 int outlen, der_len; in do_dump() local 282 der_len = i2d_ASN1_TYPE(&t, NULL); in do_dump() 283 if (der_len <= 0) in do_dump() 285 if ((der_buf = OPENSSL_malloc(der_len)) == NULL) { in do_dump() 291 outlen = do_hex_dump(io_ch, arg, der_buf, der_len); in do_dump()
|
/third_party/libwebsockets/minimal-examples/http-client/minimal-http-client-jit-trust/ |
D | minimal-http-client.c | 376 size_t der_len = 0; in jit_trust_query() local 390 skid_len, &der, &der_len); in jit_trust_query() 393 lwsl_info("%s: found len %d\n", __func__, (int)der_len); in jit_trust_query() 400 der, der_len); in jit_trust_query()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | sae_pk.c | 459 size_t der_len, b_len; in sae_parse_pk() local 491 der = base64_decode(pos, b_len, &der_len); in sae_parse_pk() 497 pk->key = crypto_ec_key_parse_priv(der, der_len); in sae_parse_pk() 498 bin_clear_free(der, der_len); in sae_parse_pk() 508 der = base64_decode(pos2, os_strlen(pos2), &der_len); in sae_parse_pk() 515 pk->sign_key_override = crypto_ec_key_parse_priv(der, der_len); in sae_parse_pk() 516 bin_clear_free(der, der_len); in sae_parse_pk()
|
/third_party/libwebsockets/lib/tls/openssl/ |
D | openssl-x509.c | 185 int der_len = i2d_X509(x509, NULL); in lws_tls_openssl_cert_info() local 188 buf->ns.len = der_len < 0 ? 0 : der_len; in lws_tls_openssl_cert_info() 190 if (der_len < 0 || (size_t)der_len > len) in lws_tls_openssl_cert_info() 193 der_len = i2d_X509(x509, &tmp); in lws_tls_openssl_cert_info() 194 if (der_len < 0) in lws_tls_openssl_cert_info()
|
D | openssl-client.c | 58 size_t der_len) 60 X509 *x = d2i_X509(NULL, &der, (long)der_len); 676 const uint8_t *der, size_t der_len) in lws_tls_client_vhost_extra_cert_mem() argument 680 X509 *x = d2i_X509(NULL, &der, (int)der_len); in lws_tls_client_vhost_extra_cert_mem() 682 X509 *x = d2i_X509(NULL, &der, (long)der_len); in lws_tls_client_vhost_extra_cert_mem()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_openssl.c | 2313 struct crypto_ec_key * crypto_ec_key_parse_priv(const u8 *der, size_t der_len) in crypto_ec_key_parse_priv() argument 2318 eckey = d2i_ECPrivateKey(NULL, &der, der_len); in crypto_ec_key_parse_priv() 2339 struct crypto_ec_key * crypto_ec_key_parse_pub(const u8 *der, size_t der_len) in crypto_ec_key_parse_pub() argument 2343 pkey = d2i_PUBKEY(NULL, &der, der_len); in crypto_ec_key_parse_pub() 2564 int der_len; in crypto_ec_key_get_subject_public_key() local 2610 der_len = i2d_EC_COMP_PUBKEY(pubkey, &der); in crypto_ec_key_get_subject_public_key() 2611 if (der_len <= 0) { in crypto_ec_key_get_subject_public_key() 2617 ret = wpabuf_alloc_copy(der, der_len); in crypto_ec_key_get_subject_public_key() 2625 int der_len; in crypto_ec_key_get_subject_public_key() 2650 der_len = i2d_PUBKEY((EVP_PKEY *) key, &der); in crypto_ec_key_get_subject_public_key() [all …]
|
D | crypto.h | 1025 struct crypto_ec_key * crypto_ec_key_parse_priv(const u8 *der, size_t der_len); 1033 struct crypto_ec_key * crypto_ec_key_parse_pub(const u8 *der, size_t der_len);
|
/third_party/mbedtls/include/mbedtls/ |
D | pem.h | 142 const unsigned char *der_data, size_t der_len,
|
/third_party/mbedtls/library/ |
D | pem.c | 434 const unsigned char *der_data, size_t der_len, in mbedtls_pem_write_buffer() argument 441 mbedtls_base64_encode( NULL, 0, &use_len, der_data, der_len ); in mbedtls_pem_write_buffer() 455 der_len ) ) != 0 ) in mbedtls_pem_write_buffer()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-client.h | 338 const uint8_t *der, size_t der_len);
|
D | lws-system.h | 161 const uint8_t *der, size_t der_len);
|
/third_party/libwebsockets/lib/tls/mbedtls/ |
D | mbedtls-client.c | 532 const uint8_t *der, size_t der_len) in lws_tls_client_vhost_extra_cert_mem() argument 534 if (SSL_CTX_add_client_CA_ASN1(vh->tls.ssl_client_ctx, (int)der_len, der) != 1) { in lws_tls_client_vhost_extra_cert_mem()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | dpp.c | 1176 int der_len; in dpp_debug_print_key() local 1206 der_len = i2d_ECPrivateKey(eckey, &der); in dpp_debug_print_key() 1207 if (der_len > 0) in dpp_debug_print_key() 1208 wpa_hexdump_key(MSG_DEBUG, "DPP: ECPrivateKey", der, der_len); in dpp_debug_print_key() 1210 if (der_len <= 0) { in dpp_debug_print_key() 1212 der_len = i2d_EC_PUBKEY(eckey, &der); in dpp_debug_print_key() 1213 if (der_len > 0) in dpp_debug_print_key() 1214 wpa_hexdump(MSG_DEBUG, "DPP: EC_PUBKEY", der, der_len); in dpp_debug_print_key() 1364 int der_len; in dpp_bootstrap_key_der() local 1411 der_len = i2d_DPP_BOOTSTRAPPING_KEY(bootstrap, &der); in dpp_bootstrap_key_der() [all …]
|
/third_party/curl/lib/vtls/ |
D | vtls.c | 883 unsigned char **der, size_t *der_len) in pubkey_pem_to_der() argument 929 result = Curl_base64_decode(stripped_pem, der, der_len); in pubkey_pem_to_der()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hs20/client/ |
D | osu_client.c | 223 size_t der_len, pem_len; in process_est_cert() local 240 der = os_readfile("Cert/est_cert.der", &der_len); in process_est_cert() 247 if (sha256_vector(1, (const u8 **) &der, &der_len, digest2) < 0) { in process_est_cert()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/hs20/client/ |
D | osu_client.c | 223 size_t der_len, pem_len; in process_est_cert() local 240 der = os_readfile("Cert/est_cert.der", &der_len); in process_est_cert() 247 if (sha256_vector(1, (const u8 **) &der, &der_len, digest2) < 0) { in process_est_cert()
|
/third_party/node/src/ |
D | node_crypto.cc | 2614 long der_len; // NOLINT(runtime/int) in TryParsePublicKey() local 2619 if (PEM_bytes_read_bio(&der_data, &der_len, nullptr, name, in TryParsePublicKey() 2626 pkey->reset(parse(&p, der_len)); in TryParsePublicKey() 2627 OPENSSL_clear_free(der_data, der_len); in TryParsePublicKey()
|