Home
last modified time | relevance | path

Searched refs:spki (Results 1 – 25 of 36) sorted by relevance

12

/external/boringssl/src/crypto/x509/
Dx_pubkey.c93 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 …]
Dx509spki.c85 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()
Dx_all.c134 int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *spki, EVP_PKEY *pkey) in NETSCAPE_SPKI_verify() argument
136 return (ASN1_item_verify(ASN1_ITEM_rptr(NETSCAPE_SPKAC), spki->sig_algor, in NETSCAPE_SPKI_verify()
137 spki->signature, spki->spkac, pkey)); in NETSCAPE_SPKI_verify()
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/
Dx509spki.c85 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()
Dx_pubkey.c93 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 …]
/external/libchrome/crypto/
Dnss_key_util.cc24 inline void operator()(CERTSubjectPublicKeyInfo* spki) { in operator ()()
25 SECKEY_DestroySubjectPublicKeyInfo(spki); in operator ()()
41 ScopedPublicKeyInfo spki(SECKEY_DecodeDERSubjectPublicKeyInfo(&key_der)); in MakeIDFromSPKI() local
42 if (!spki) in MakeIDFromSPKI()
45 ScopedSECKEYPublicKey result(SECKEY_ExtractPublicKey(spki.get())); in MakeIDFromSPKI()
/external/boringssl/src/crypto/evp/
Dp_rsa_asn1.c71 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()
Dp_ed25519_asn1.c132 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()
Dp_ec_asn1.c74 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()
Dp_x25519_asn1.c129 CBB spki, algorithm, oid, key_bitstring; in x25519_pub_encode() local
130 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in x25519_pub_encode()
131 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in x25519_pub_encode()
134 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in x25519_pub_encode()
Dp_dsa_asn1.c109 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()
Devp_asn1.c100 CBS spki, algorithm, key; in EVP_parse_public_key() local
103 if (!CBS_get_asn1(cbs, &spki, CBS_ASN1_SEQUENCE) || in EVP_parse_public_key()
104 !CBS_get_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_public_key()
105 !CBS_get_asn1(&spki, &key, CBS_ASN1_BITSTRING) || in EVP_parse_public_key()
106 CBS_len(&spki) != 0) { in EVP_parse_public_key()
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Dp_rsa_asn1.c71 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()
Dp_ed25519_asn1.c132 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()
Dp_x25519_asn1.c129 CBB spki, algorithm, oid, key_bitstring; in x25519_pub_encode() local
130 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in x25519_pub_encode()
131 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in x25519_pub_encode()
134 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in x25519_pub_encode()
Dp_ec_asn1.c74 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()
Devp_asn1.c99 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()
Dp_dsa_asn1.c109 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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DAuthorityKeyIdentifier.java110 SubjectPublicKeyInfo spki) in AuthorityKeyIdentifier() argument
117 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
129 SubjectPublicKeyInfo spki, in AuthorityKeyIdentifier() argument
138 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DAuthorityKeyIdentifier.java112 SubjectPublicKeyInfo spki) in AuthorityKeyIdentifier() argument
119 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
131 SubjectPublicKeyInfo spki, in AuthorityKeyIdentifier() argument
140 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/
DAuthorityKeyIdentifier.java112 SubjectPublicKeyInfo spki) in AuthorityKeyIdentifier() argument
119 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
131 SubjectPublicKeyInfo spki, in AuthorityKeyIdentifier() argument
140 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
/external/rust/crates/quiche/deps/boringssl/src/fuzz/
DCMakeLists.txt22 fuzzer(spki)
/external/scapy/test/
Dx509.uts102 spki = tbs.subjectPublicKeyInfo
103 spki.signatureAlgorithm.algorithm == ASN1_OID("rsaEncryption")
106 assert(type(spki.subjectPublicKey) is RSAPublicKey)
107 spki.subjectPublicKey.modulus == ASN1_INTEGER(19231328316532061413420367242571475005688288081144416…
/external/boringssl/src/include/openssl/
Dx509.h683 OPENSSL_EXPORT int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *spki, EVP_PKEY *pkey);
697 OPENSSL_EXPORT char *NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki);
702 OPENSSL_EXPORT EVP_PKEY *NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *spki);
707 OPENSSL_EXPORT int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *spki,
767 OPENSSL_EXPORT int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *spki, EVP_PKEY *pkey,
/external/python/pyopenssl/doc/api/
Dcrypto.rst195 .. _openssl-netscape-spki:

12