/external/boringssl/src/include/openssl/ |
D | bytestring.h | 340 CBB *child; 357 OPENSSL_EXPORT void CBB_zero(CBB *cbb); 362 OPENSSL_EXPORT int CBB_init(CBB *cbb, size_t initial_capacity); 367 OPENSSL_EXPORT int CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len); 376 OPENSSL_EXPORT void CBB_cleanup(CBB *cbb); 386 OPENSSL_EXPORT int CBB_finish(CBB *cbb, uint8_t **out_data, size_t *out_len); 393 OPENSSL_EXPORT int CBB_flush(CBB *cbb); 400 OPENSSL_EXPORT const uint8_t *CBB_data(const CBB *cbb); 407 OPENSSL_EXPORT size_t CBB_len(const CBB *cbb); 412 OPENSSL_EXPORT int CBB_add_u8_length_prefixed(CBB *cbb, CBB *out_contents); [all …]
|
D | dsa.h | 260 OPENSSL_EXPORT int DSA_SIG_marshal(CBB *cbb, const DSA_SIG *sig); 269 OPENSSL_EXPORT int DSA_marshal_public_key(CBB *cbb, const DSA *dsa); 278 OPENSSL_EXPORT int DSA_marshal_private_key(CBB *cbb, const DSA *dsa); 288 OPENSSL_EXPORT int DSA_marshal_parameters(CBB *cbb, const DSA *dsa);
|
/external/boringssl/src/crypto/bytestring/ |
D | cbb.c | 27 void CBB_zero(CBB *cbb) { in CBB_zero() 28 OPENSSL_memset(cbb, 0, sizeof(CBB)); in CBB_zero() 31 static int cbb_init(CBB *cbb, uint8_t *buf, size_t cap) { in cbb_init() 51 int CBB_init(CBB *cbb, size_t initial_capacity) { in CBB_init() 67 int CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len) { in CBB_init_fixed() 78 void CBB_cleanup(CBB *cbb) { in CBB_cleanup() 171 int CBB_finish(CBB *cbb, uint8_t **out_data, size_t *out_len) { in CBB_finish() 199 int CBB_flush(CBB *cbb) { in CBB_flush() 285 const uint8_t *CBB_data(const CBB *cbb) { in CBB_data() 290 size_t CBB_len(const CBB *cbb) { in CBB_len() [all …]
|
D | internal.h | 67 int CBB_finish_i2d(CBB *cbb, uint8_t **outp); 86 OPENSSL_EXPORT int cbb_add_utf8(CBB *cbb, uint32_t u); 87 OPENSSL_EXPORT int cbb_add_latin1(CBB *cbb, uint32_t u); 88 OPENSSL_EXPORT int cbb_add_ucs2_be(CBB *cbb, uint32_t u); 89 OPENSSL_EXPORT int cbb_add_utf32_be(CBB *cbb, uint32_t u);
|
D | unicode.c | 120 int cbb_add_utf8(CBB *cbb, uint32_t u) { in cbb_add_utf8() 145 int cbb_add_latin1(CBB *cbb, uint32_t u) { in cbb_add_latin1() 149 int cbb_add_ucs2_be(CBB *cbb, uint32_t u) { in cbb_add_ucs2_be() 153 int cbb_add_utf32_be(CBB *cbb, uint32_t u) { in cbb_add_utf32_be()
|
D | ber.c | 111 static int cbs_convert_ber(CBS *in, CBB *out, unsigned string_tag, in cbs_convert_ber() 123 CBB *out_contents, out_contents_storage; in cbs_convert_ber() 193 CBB cbb; in CBS_asn1_ber_to_der() 237 CBB result; in CBS_get_asn1_implicit_string()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa_asn1.c | 76 static int marshal_integer(CBB *cbb, BIGNUM *bn) { in marshal_integer() 102 int DSA_SIG_marshal(CBB *cbb, const DSA_SIG *sig) { in DSA_SIG_marshal() 103 CBB child; in DSA_SIG_marshal() 133 int DSA_marshal_public_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_public_key() 134 CBB child; in DSA_marshal_public_key() 165 int DSA_marshal_parameters(CBB *cbb, const DSA *dsa) { in DSA_marshal_parameters() 166 CBB child; in DSA_marshal_parameters() 213 int DSA_marshal_private_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_private_key() 214 CBB child; in DSA_marshal_private_key() 248 CBB cbb; in i2d_DSA_SIG() [all …]
|
/external/boringssl/src/ssl/ |
D | t1_lib.cc | 517 bool tls12_add_verify_sigalgs(const SSL *ssl, CBB *out, bool for_certs) { in tls12_add_verify_sigalgs() 567 bool (*add_clienthello)(SSL_HANDSHAKE *hs, CBB *out); 573 bool (*add_serverhello)(SSL_HANDSHAKE *hs, CBB *out); 594 static bool dont_add_serverhello(SSL_HANDSHAKE *hs, CBB *out) { in dont_add_serverhello() 602 static bool ext_sni_add_clienthello(SSL_HANDSHAKE *hs, CBB *out) { in ext_sni_add_clienthello() 608 CBB contents, server_name_list, name; in ext_sni_add_clienthello() 674 static bool ext_sni_add_serverhello(SSL_HANDSHAKE *hs, CBB *out) { in ext_sni_add_serverhello() 693 static bool ext_ri_add_clienthello(SSL_HANDSHAKE *hs, CBB *out) { in ext_ri_add_clienthello() 703 CBB contents, prev_finished; in ext_ri_add_clienthello() 834 static bool ext_ri_add_serverhello(SSL_HANDSHAKE *hs, CBB *out) { in ext_ri_add_serverhello() [all …]
|
D | ssl_key_share.cc | 46 bool Offer(CBB *out) override { in Offer() 128 bool Serialize(CBB *out) override { in Serialize() 130 CBB cbb; in Serialize() 166 bool Offer(CBB *out) override { in Offer() 193 bool Serialize(CBB *out) override { in Serialize() 218 bool Offer(CBB *out) override { in Offer() 239 bool Accept(CBB *out_public_key, Array<uint8_t> *out_secret, in Accept() 354 bool SSLKeyShare::Accept(CBB *out_public_key, Array<uint8_t> *out_secret, in Accept()
|
D | internal.h | 357 OPENSSL_EXPORT bool CBBFinishArray(CBB *cbb, Array<uint8_t> *out); 396 bool ssl_add_supported_versions(SSL_HANDSHAKE *hs, CBB *cbb); 967 virtual bool Offer(CBB *out_public_key) PURE_VIRTUAL; 976 virtual bool Accept(CBB *out_public_key, Array<uint8_t> *out_secret, 988 virtual bool Serialize(CBB *out) { return false; } 1190 bool ssl_add_cert_chain(SSL_HANDSHAKE *hs, CBB *cbb); 1221 bool ssl_add_client_CA_list(SSL_HANDSHAKE *hs, CBB *cbb); 1725 bool ssl_ext_key_share_add_serverhello(SSL_HANDSHAKE *hs, CBB *out); 1733 bool ssl_ext_pre_shared_key_add_serverhello(SSL_HANDSHAKE *hs, CBB *out); 1850 bool tls12_add_verify_sigalgs(const SSL *ssl, CBB *out, bool for_certs); [all …]
|
D | tls13_both.cc | 425 CBB *body, body_storage, certificate_list; in tls13_add_certificate() 451 CBB leaf, extensions; in tls13_add_certificate() 461 CBB contents; in tls13_add_certificate() 475 CBB contents, ocsp_response; in tls13_add_certificate() 504 CBB child; in tls13_add_certificate() 537 CBB compressed; in tls13_add_certificate() 562 CBB body; in tls13_add_certificate_verify() 571 CBB child; in tls13_add_certificate_verify() 615 CBB body; in tls13_add_finished() 627 CBB body_cbb; in tls13_add_key_update()
|
/external/boringssl/src/crypto/rsa_extra/ |
D | rsa_asn1.c | 81 static int marshal_integer(CBB *cbb, BIGNUM *bn) { in marshal_integer() 127 int RSA_marshal_public_key(CBB *cbb, const RSA *rsa) { in RSA_marshal_public_key() 128 CBB child; in RSA_marshal_public_key() 141 CBB cbb; in RSA_public_key_to_bytes() 216 int RSA_marshal_private_key(CBB *cbb, const RSA *rsa) { in RSA_marshal_private_key() 217 CBB child; in RSA_marshal_private_key() 237 CBB cbb; in RSA_private_key_to_bytes() 268 CBB cbb; in i2d_RSAPublicKey() 296 CBB cbb; in i2d_RSAPrivateKey()
|
/external/boringssl/src/crypto/dh/ |
D | dh_asn1.c | 77 static int marshal_integer(CBB *cbb, BIGNUM *bn) { in marshal_integer() 120 int DH_marshal_parameters(CBB *cbb, const DH *dh) { in DH_marshal_parameters() 121 CBB child; in DH_marshal_parameters() 153 CBB cbb; in i2d_DHparams()
|
/external/boringssl/src/crypto/ecdsa_extra/ |
D | ecdsa_asn1.c | 83 CBB cbb; in ECDSA_sign() 181 int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig) { in ECDSA_SIG_marshal() 182 CBB child; in ECDSA_SIG_marshal() 195 CBB cbb; in ECDSA_SIG_to_bytes() 260 CBB cbb; in i2d_ECDSA_SIG()
|
/external/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 192 int EC_KEY_marshal_private_key(CBB *cbb, const EC_KEY *key, in EC_KEY_marshal_private_key() 199 CBB ec_private_key, private_key; in EC_KEY_marshal_private_key() 211 CBB child; in EC_KEY_marshal_private_key() 222 CBB child, public_key; in EC_KEY_marshal_private_key() 349 int EC_KEY_marshal_curve_name(CBB *cbb, const EC_GROUP *group) { in EC_KEY_marshal_curve_name() 360 CBB child; in EC_KEY_marshal_curve_name() 410 int EC_POINT_point2cbb(CBB *out, const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2cbb() 448 CBB cbb; in i2d_ECPrivateKey() 491 CBB cbb; in i2d_ECParameters()
|
/external/boringssl/src/crypto/evp/ |
D | p_rsa_asn1.c | 69 static int rsa_pub_encode(CBB *out, const EVP_PKEY *key) { in rsa_pub_encode() 71 CBB spki, algorithm, oid, null, key_bitstring; in rsa_pub_encode() 116 static int rsa_priv_encode(CBB *out, const EVP_PKEY *key) { in rsa_priv_encode() 117 CBB pkcs8, algorithm, oid, null, private_key; in rsa_priv_encode()
|
D | p_ed25519_asn1.c | 72 static int ed25519_pub_encode(CBB *out, const EVP_PKEY *pkey) { in ed25519_pub_encode() 76 CBB spki, algorithm, oid, key_bitstring; in ed25519_pub_encode() 119 static int ed25519_priv_encode(CBB *out, const EVP_PKEY *pkey) { in ed25519_priv_encode() 127 CBB pkcs8, algorithm, oid, private_key, inner; in ed25519_priv_encode()
|
D | p_ec_asn1.c | 68 static int eckey_pub_encode(CBB *out, const EVP_PKEY *key) { in eckey_pub_encode() 74 CBB spki, algorithm, oid, key_bitstring; in eckey_pub_encode() 164 static int eckey_priv_encode(CBB *out, const EVP_PKEY *key) { in eckey_priv_encode() 174 CBB pkcs8, algorithm, oid, private_key; in eckey_priv_encode()
|
D | p_dsa_asn1.c | 104 static int dsa_pub_encode(CBB *out, const EVP_PKEY *key) { in dsa_pub_encode() 109 CBB spki, algorithm, oid, key_bitstring; in dsa_pub_encode() 169 static int dsa_priv_encode(CBB *out, const EVP_PKEY *key) { in dsa_priv_encode() 177 CBB pkcs8, algorithm, oid, private_key; in dsa_priv_encode()
|
/external/boringssl/src/crypto/pkcs7/ |
D | pkcs7_x509.c | 172 static int pkcs7_bundle_certificates_cb(CBB *out, const void *arg) { in pkcs7_bundle_certificates_cb() 175 CBB certificates; in pkcs7_bundle_certificates_cb() 198 int PKCS7_bundle_certificates(CBB *out, const STACK_OF(X509) *certs) { in PKCS7_bundle_certificates() 202 static int pkcs7_bundle_crls_cb(CBB *out, const void *arg) { in pkcs7_bundle_crls_cb() 205 CBB crl_data; in pkcs7_bundle_crls_cb() 228 int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls) { in PKCS7_bundle_CRLs() 372 CBB cbb; in PKCS7_sign()
|
D | internal.h | 41 int pkcs7_bundle(CBB *out, int (*cb)(CBB *out, const void *arg),
|
D | pkcs7.c | 134 int pkcs7_bundle(CBB *out, int (*cb)(CBB *out, const void *arg), in pkcs7_bundle() 136 CBB outer_seq, oid, wrapped_seq, seq, version_bytes, digest_algos_set, in pkcs7_bundle()
|
/external/boringssl/src/ssl/test/ |
D | test_state.cc | 85 bool SerializeContextState(SSL_CTX *ctx, CBB *cbb) { in SerializeContextState() 86 CBB out, ctx_sessions, ticket_keys; in SerializeContextState() 130 bool TestState::Serialize(CBB *cbb) const { in Serialize() 131 CBB out, pending, text; in Serialize()
|
D | settings_writer.cc | 48 CBB child; in Init() 92 CBB child; in WriteHandoff() 107 CBB child; in WriteHandback()
|
/external/boringssl/src/crypto/pkcs8/ |
D | pkcs8.c | 77 CBB cbb; in pkcs12_encode_password() 333 int pkcs12_pbe_encrypt_init(CBB *out, EVP_CIPHER_CTX *ctx, int alg, in pkcs12_pbe_encrypt_init() 344 CBB algorithm, oid, param, salt_cbb; in pkcs12_pbe_encrypt_init() 445 int PKCS8_marshal_encrypted_private_key(CBB *out, int pbe_nid, in PKCS8_marshal_encrypted_private_key() 476 CBB plaintext_cbb; in PKCS8_marshal_encrypted_private_key() 484 CBB epki; in PKCS8_marshal_encrypted_private_key() 507 CBB ciphertext; in PKCS8_marshal_encrypted_private_key()
|