/third_party/openssl/crypto/x509/ |
D | x509spki.c | 60 int der_len; in NETSCAPE_SPKI_b64_encode() local 62 der_len = i2d_NETSCAPE_SPKI(spki, NULL); in NETSCAPE_SPKI_b64_encode() 63 if (der_len <= 0) in NETSCAPE_SPKI_b64_encode() 65 der_spki = OPENSSL_malloc(der_len); in NETSCAPE_SPKI_b64_encode() 66 b64_str = OPENSSL_malloc(der_len * 2); in NETSCAPE_SPKI_b64_encode() 75 EVP_EncodeBlock((unsigned char *)b64_str, der_spki, der_len); in NETSCAPE_SPKI_b64_encode()
|
/third_party/openssl/providers/implementations/encode_decode/ |
D | decode_der2key.c | 183 long der_len = 0; in der2key_decode() local 203 ok = ossl_read_der(ctx->provctx, cin, &der, &der_len); in der2key_decode() 213 key = ctx->desc->d2i_PKCS8(NULL, &derp, der_len, ctx); in der2key_decode() 219 key = ctx->desc->d2i_private_key(NULL, &derp, der_len); in der2key_decode() 229 key = ctx->desc->d2i_PUBKEY(NULL, &derp, der_len); in der2key_decode() 231 key = ctx->desc->d2i_public_key(NULL, &derp, der_len); in der2key_decode() 240 key = ctx->desc->d2i_key_params(NULL, &derp, der_len); in der2key_decode() 335 static void *dh_d2i_PKCS8(void **key, const unsigned char **der, long der_len, in dh_d2i_PKCS8() argument 338 return der2key_decode_p8(der, der_len, ctx, in dh_d2i_PKCS8() 370 static void *dsa_d2i_PKCS8(void **key, const unsigned char **der, long der_len, in dsa_d2i_PKCS8() argument [all …]
|
D | decode_epki2pki.c | 66 long der_len = 0; in epki2pki_decode() local 84 der_len = (long)mem->length; in epki2pki_decode() 89 if ((p8 = d2i_X509_SIG(NULL, &pder, der_len)) != NULL) { in epki2pki_decode() 112 der_len = new_der_len; in epki2pki_decode() 123 p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &pder, der_len); in epki2pki_decode() 142 der, der_len); in epki2pki_decode()
|
D | decode_pem2der.c | 139 long der_len = 0; in pem2der_decode() local 144 &der, &der_len) > 0; in pem2der_decode() 163 || !PEM_do_header(&cipher, der, &der_len, in pem2der_decode() 198 der, der_len); in pem2der_decode()
|
/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/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/openssl/crypto/ct/ |
D | ct_sct_ctx.c | 209 int der_len; in ct_public_key_hash() local 226 der_len = i2d_X509_PUBKEY(pkey, &der); in ct_public_key_hash() 227 if (der_len <= 0) in ct_public_key_hash() 230 if (!EVP_Digest(der, der_len, md, &md_len, sha256, NULL)) in ct_public_key_hash()
|
/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/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/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/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/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/openssl/providers/implementations/kdfs/ |
D | x942kdf.c | 204 unsigned char **der, size_t *der_len, in x942_encode_otherinfo() argument 257 *der_len = der_buflen; in x942_encode_otherinfo() 405 size_t der_len = 0; in x942kdf_derive() local 459 &der, &der_len, &ctr)) { in x942kdf_derive() 464 der, der_len, ctr, key, keylen); in x942kdf_derive()
|
/third_party/openssl/crypto/store/ |
D | store_result.c | 312 long der_len = (long)data->octet_data_size; in try_key_value_legacy() local 318 pk = d2i_PUBKEY_ex(NULL, &derp, der_len, libctx, propq); in try_key_value_legacy() 334 p8 = d2i_X509_SIG(NULL, &derp, der_len); in try_key_value_legacy() 356 der_len = len; in try_key_value_legacy() 369 p8info = d2i_PKCS8_PRIV_KEY_INFO(NULL, &derp, der_len); in try_key_value_legacy()
|
/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/mbedtls/include/mbedtls/ |
D | pem.h | 142 const unsigned char *der_data, size_t der_len,
|
/third_party/openssl/providers/implementations/storemgmt/ |
D | file_store.c | 353 size_t der_len = 0; in file_set_ctx_params() local 364 if (!OSSL_PARAM_get_octet_string_ptr(p, (const void **)&der, &der_len) in file_set_ctx_params() 365 || (x509_name = d2i_X509_NAME(NULL, &der, der_len)) == NULL) in file_set_ctx_params()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-client.h | 338 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()
|