/third_party/openssl/apps/ |
D | spkac.c | 56 NETSCAPE_SPKI *spki = NULL; in spkac_main() local 130 spki = NETSCAPE_SPKI_new(); in spkac_main() 131 if (spki == NULL) in spkac_main() 134 ASN1_STRING_set(spki->spkac->challenge, in spkac_main() 136 NETSCAPE_SPKI_set_pubkey(spki, pkey); in spkac_main() 137 NETSCAPE_SPKI_sign(spki, pkey, EVP_md5()); in spkac_main() 138 spkstr = NETSCAPE_SPKI_b64_encode(spki); in spkac_main() 164 spki = NETSCAPE_SPKI_b64_decode(spkstr, -1); in spkac_main() 166 if (spki == NULL) { in spkac_main() 177 NETSCAPE_SPKI_print(out, spki); in spkac_main() [all …]
|
D | ca.c | 1925 NETSCAPE_SPKI *spki = NULL; in certify_spkac() local 1990 spki = NETSCAPE_SPKI_b64_decode(cv->value, -1); in certify_spkac() 1991 if (spki == NULL) { in certify_spkac() 2005 if (spki == NULL) { in certify_spkac() 2017 if ((pktmp = NETSCAPE_SPKI_get_pubkey(spki)) == NULL) { in certify_spkac() 2022 j = NETSCAPE_SPKI_verify(spki, pktmp); in certify_spkac() 2040 NETSCAPE_SPKI_free(spki); in certify_spkac()
|
/third_party/openssl/crypto/asn1/ |
D | t_spki.c | 20 int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki) in NETSCAPE_SPKI_print() argument 28 X509_PUBKEY_get0_param(&spkioid, NULL, NULL, NULL, spki->spkac->pubkey); in NETSCAPE_SPKI_print() 32 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in NETSCAPE_SPKI_print() 39 chal = spki->spkac->challenge; in NETSCAPE_SPKI_print() 42 i = OBJ_obj2nid(spki->sig_algor.algorithm); in NETSCAPE_SPKI_print() 46 n = spki->signature->length; in NETSCAPE_SPKI_print() 47 s = (char *)spki->signature->data; in NETSCAPE_SPKI_print()
|
/third_party/openssl/crypto/x509/ |
D | x509spki.c | 35 NETSCAPE_SPKI *spki; in NETSCAPE_SPKI_b64_decode() local 49 spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); in NETSCAPE_SPKI_b64_decode() 51 return spki; in NETSCAPE_SPKI_b64_decode() 56 char *NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) in NETSCAPE_SPKI_b64_encode() argument 61 der_len = i2d_NETSCAPE_SPKI(spki, NULL); in NETSCAPE_SPKI_b64_encode() 71 i2d_NETSCAPE_SPKI(spki, &p); in NETSCAPE_SPKI_b64_encode()
|
D | x509_vfy.c | 2808 X509_verify(cert, t->spki) <= 0) in check_dane_pkeys()
|
/third_party/boringssl/src/crypto/x509/ |
D | x509spki.c | 85 NETSCAPE_SPKI *spki; in NETSCAPE_SPKI_b64_decode() local 103 spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); in NETSCAPE_SPKI_b64_decode() 105 return spki; in NETSCAPE_SPKI_b64_decode() 110 char *NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) in NETSCAPE_SPKI_b64_encode() argument 116 der_len = i2d_NETSCAPE_SPKI(spki, NULL); in NETSCAPE_SPKI_b64_encode() 133 i2d_NETSCAPE_SPKI(spki, &p); in NETSCAPE_SPKI_b64_encode()
|
D | x_pubkey.c | 93 uint8_t *spki = NULL; variable 102 !CBB_finish(&cbb, &spki, &spki_len) || 109 const uint8_t *p = spki; 111 if (pk == NULL || p != spki + spki_len) { 116 OPENSSL_free(spki); 123 OPENSSL_free(spki); 136 uint8_t *spki = NULL; in X509_PUBKEY_get() local 150 int spki_len = i2d_X509_PUBKEY(key, &spki); in X509_PUBKEY_get() 155 CBS_init(&cbs, spki, (size_t)spki_len); in X509_PUBKEY_get() 173 OPENSSL_free(spki); in X509_PUBKEY_get() [all …]
|
/third_party/boringssl/src/crypto/evp/ |
D | p_rsa_asn1.c | 71 CBB spki, algorithm, oid, null, key_bitstring; in rsa_pub_encode() local 72 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in rsa_pub_encode() 73 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in rsa_pub_encode() 77 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in rsa_pub_encode()
|
D | p_ed25519_asn1.c | 132 CBB spki, algorithm, oid, key_bitstring; in ed25519_pub_encode() local 133 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in ed25519_pub_encode() 134 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in ed25519_pub_encode() 137 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in ed25519_pub_encode()
|
D | p_ec_asn1.c | 74 CBB spki, algorithm, oid, key_bitstring; in eckey_pub_encode() local 75 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in eckey_pub_encode() 76 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in eckey_pub_encode() 80 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in eckey_pub_encode()
|
D | p_x25519_asn1.c | 130 CBB spki, algorithm, oid, key_bitstring; in x25519_pub_encode() local 131 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in x25519_pub_encode() 132 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in x25519_pub_encode() 135 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in x25519_pub_encode()
|
D | evp_asn1.c | 99 CBS spki, algorithm, key; in EVP_parse_public_key() local 102 if (!CBS_get_asn1(cbs, &spki, CBS_ASN1_SEQUENCE) || in EVP_parse_public_key() 103 !CBS_get_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_public_key() 104 !CBS_get_asn1(&spki, &key, CBS_ASN1_BITSTRING) || in EVP_parse_public_key() 105 CBS_len(&spki) != 0) { in EVP_parse_public_key()
|
D | p_dsa_asn1.c | 109 CBB spki, algorithm, oid, key_bitstring; in dsa_pub_encode() local 110 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in dsa_pub_encode() 111 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in dsa_pub_encode() 116 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in dsa_pub_encode()
|
/third_party/libcoap/src/ |
D | coap_gnutls.c | 991 gnutls_datum_t *spki = NULL; in get_asn1_spki() local 1003 spki = (gnutls_datum_t *)tmp; in get_asn1_spki() 1004 spki->data = &tmp[sizeof(gnutls_datum_t)]; in get_asn1_spki() 1005 memcpy(&spki->data[header_size], pub_key->s, pub_key->length); in get_asn1_spki() 1006 memcpy(spki->data, cert_asn1_header1, sizeof(cert_asn1_header1)); in get_asn1_spki() 1007 spki->data[sizeof(cert_asn1_header1)] = COAP_ASN1_IDENTIFIER; in get_asn1_spki() 1008 spki->data[sizeof(cert_asn1_header1)+1] = prime->length; in get_asn1_spki() 1009 memcpy(&spki->data[sizeof(cert_asn1_header1)+2], in get_asn1_spki() 1011 memcpy(&spki->data[sizeof(cert_asn1_header1)+2+prime->length], in get_asn1_spki() 1013 spki->size = header_size + pub_key->length; in get_asn1_spki() [all …]
|
/third_party/boringssl/src/fuzz/ |
D | CMakeLists.txt | 21 fuzzer(spki)
|
/third_party/openssl/include/internal/ |
D | dane.h | 48 EVP_PKEY *spki; member
|
/third_party/boringssl/src/ |
D | FUZZING.md | 36 | `spki` | 1024 |
|
/third_party/node/src/ |
D | node_crypto.cc | 6646 NetscapeSPKIPointer spki(NETSCAPE_SPKI_b64_decode(data, len)); in VerifySpkac() local 6647 if (!spki) in VerifySpkac() 6650 EVPKeyPointer pkey(X509_PUBKEY_get(spki->spkac->pubkey)); in VerifySpkac() 6654 return NETSCAPE_SPKI_verify(spki.get(), pkey.get()) > 0; in VerifySpkac() 6679 NetscapeSPKIPointer spki(NETSCAPE_SPKI_b64_decode(data, len)); in ExportPublicKey() local 6680 if (!spki) return AllocatedBuffer(); in ExportPublicKey() 6682 EVPKeyPointer pkey(NETSCAPE_SPKI_get_pubkey(spki.get())); in ExportPublicKey()
|
/third_party/openssl/include/openssl/ |
D | x509.h | 361 int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);
|
/third_party/node/doc/api/ |
D | crypto.md | 1301 * `type`: {string} Must be one of `'pkcs1'` (RSA only) or `'spki'`. 2051 * `type`: {string} Must be `'pkcs1'` or `'spki'`. This option is required 2179 It is recommended to encode public keys as `'spki'` and private keys as 2187 type: 'spki', 2248 When encoding public keys, it is recommended to use `'spki'`. When encoding 2257 type: 'spki',
|
/third_party/openssl/ssl/ |
D | ssl_lib.c | 187 EVP_PKEY_free(t->spki); in tlsa_free() 411 t->spki = pkey; in dane_tlsa_add() 1077 *mspki = (dane->mcert == NULL) ? dane->mtlsa->spki : NULL; in SSL_get0_dane_authority()
|
/third_party/boringssl/src/include/openssl/ |
D | x509.h | 577 OPENSSL_EXPORT int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);
|
/third_party/boringssl/ |
D | BUILD.generated.gni | 603 "spki",
|