Home
last modified time | relevance | path

Searched refs:CBB (Results 1 – 25 of 60) sorted by relevance

123

/external/boringssl/src/include/openssl/
Dbytestring.h242 CBB *child;
259 OPENSSL_EXPORT void CBB_zero(CBB *cbb);
264 OPENSSL_EXPORT int CBB_init(CBB *cbb, size_t initial_capacity);
269 OPENSSL_EXPORT int CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len);
278 OPENSSL_EXPORT void CBB_cleanup(CBB *cbb);
288 OPENSSL_EXPORT int CBB_finish(CBB *cbb, uint8_t **out_data, size_t *out_len);
293 OPENSSL_EXPORT int CBB_flush(CBB *cbb);
300 OPENSSL_EXPORT const uint8_t *CBB_data(const CBB *cbb);
307 OPENSSL_EXPORT size_t CBB_len(const CBB *cbb);
312 OPENSSL_EXPORT int CBB_add_u8_length_prefixed(CBB *cbb, CBB *out_contents);
[all …]
Dobj.h133 OPENSSL_EXPORT int OBJ_nid2cbb(CBB *out, int nid);
Decdsa.h162 OPENSSL_EXPORT int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig);
Drsa.h352 OPENSSL_EXPORT int RSA_marshal_public_key(CBB *cbb, const RSA *rsa);
374 OPENSSL_EXPORT int RSA_marshal_private_key(CBB *cbb, const RSA *rsa);
Dbase.h200 typedef struct cbb_st CBB; typedef
Dbn.h257 OPENSSL_EXPORT int BN_bn2cbb_padded(CBB *out, size_t len, const BIGNUM *in);
316 OPENSSL_EXPORT int BN_bn2cbb(CBB *cbb, const BIGNUM *bn);
/external/boringssl/src/crypto/bytestring/
Dcbb.c23 void CBB_zero(CBB *cbb) { in CBB_zero()
24 memset(cbb, 0, sizeof(CBB)); in CBB_zero()
27 static int cbb_init(CBB *cbb, uint8_t *buf, size_t cap) { in cbb_init()
46 int CBB_init(CBB *cbb, size_t initial_capacity) { in CBB_init()
62 int CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len) { in CBB_init_fixed()
73 void CBB_cleanup(CBB *cbb) { in CBB_cleanup()
157 int CBB_finish(CBB *cbb, uint8_t **out_data, size_t *out_len) { in CBB_finish()
185 int CBB_flush(CBB *cbb) { in CBB_flush()
264 const uint8_t *CBB_data(const CBB *cbb) { in CBB_data()
269 size_t CBB_len(const CBB *cbb) { in CBB_len()
[all …]
Dbytestring_test.cc272 CBB cbb; in TestCBBBasic()
296 CBB cbb; in TestCBBFixed()
323 CBB cbb, child; in TestCBBFinishChild()
345 CBB cbb, contents, inner_contents, inner_inner_contents; in TestCBBPrefixed()
375 CBB contents, inner_contents, inner_inner_contents; in TestCBBDiscardChild()
423 CBB cbb, child, contents; in TestCBBMisuse()
468 CBB cbb, contents, inner_contents; in TestCBBASN1()
665 CBB cbb; in TestASN1Uint64()
707 CBB cbb; in TestZero()
Dber.c89 static int cbs_convert_ber(CBS *in, CBB *out, char squash_header, in cbs_convert_ber()
99 CBB *out_contents, out_contents_storage; in cbs_convert_ber()
197 CBB cbb; in CBS_asn1_ber_to_der()
/external/boringssl/src/ssl/
Dt1_lib.c668 int (*add_clienthello)(SSL *ssl, CBB *out);
672 int (*add_serverhello)(SSL *ssl, CBB *out);
684 static int ext_sni_add_clienthello(SSL *ssl, CBB *out) { in ext_sni_add_clienthello()
689 CBB contents, server_name_list, name; in ext_sni_add_clienthello()
815 static int ext_sni_add_serverhello(SSL *ssl, CBB *out) { in ext_sni_add_serverhello()
835 static int ext_ri_add_clienthello(SSL *ssl, CBB *out) { in ext_ri_add_clienthello()
836 CBB contents, prev_finished; in ext_ri_add_clienthello()
959 static int ext_ri_add_serverhello(SSL *ssl, CBB *out) { in ext_ri_add_serverhello()
960 CBB contents, prev_finished; in ext_ri_add_serverhello()
984 static int ext_ems_add_clienthello(SSL *ssl, CBB *out) { in ext_ems_add_clienthello()
[all …]
Dcustom_extensions.c62 static int custom_ext_add_hello(SSL *ssl, CBB *extensions) { in custom_ext_add_hello()
85 CBB contents_cbb; in custom_ext_add_hello()
126 int custom_ext_add_clienthello(SSL *ssl, CBB *extensions) { in custom_ext_add_clienthello()
181 int custom_ext_add_serverhello(SSL *ssl, CBB *extensions) { in custom_ext_add_serverhello()
Dssl_ecdh.c38 static int ssl_ec_point_generate_keypair(SSL_ECDH_CTX *ctx, CBB *out) { in ssl_ec_point_generate_keypair()
170 static int ssl_x25519_generate_keypair(SSL_ECDH_CTX *ctx, CBB *out) { in ssl_x25519_generate_keypair()
215 static int ssl_dhe_generate_keypair(SSL_ECDH_CTX *ctx, CBB *out) { in ssl_dhe_generate_keypair()
374 int SSL_ECDH_CTX_generate_keypair(SSL_ECDH_CTX *ctx, CBB *out_public_key) { in SSL_ECDH_CTX_generate_keypair()
Dinternal.h480 int custom_ext_add_clienthello(SSL *ssl, CBB *extensions);
485 int custom_ext_add_serverhello(SSL *ssl, CBB *extensions);
536 int (*generate_keypair)(SSL_ECDH_CTX *ctx, CBB *out_public_key);
567 int SSL_ECDH_CTX_generate_keypair(SSL_ECDH_CTX *ctx, CBB *out_public_key);
1214 int ssl_add_clienthello_tlsext(SSL *ssl, CBB *out, size_t header_len);
1216 int ssl_add_serverhello_tlsext(SSL *ssl, CBB *out);
1235 int tls12_add_sigandhash(SSL *ssl, CBB *out, const EVP_MD *md);
Ds3_clnt.c592 static int ssl3_write_client_cipher_list(SSL *ssl, CBB *out) { in ssl3_write_client_cipher_list()
596 CBB child; in ssl3_write_client_cipher_list()
659 CBB cbb; in ssl3_send_client_hello()
701 CBB child; in ssl3_send_client_hello()
1582 CBB cbb; in ssl3_send_client_key_exchange()
1620 CBB child; in ssl3_send_client_key_exchange()
1659 CBB child, *enc_pms = &cbb; in ssl3_send_client_key_exchange()
1682 CBB child; in ssl3_send_client_key_exchange()
1728 CBB pms_cbb, child; in ssl3_send_client_key_exchange()
1783 CBB cbb, child; in ssl3_send_cert_verify()
[all …]
Dssl_asn1.c168 static int add_X509(CBB *cbb, X509 *x509) { in add_X509()
186 CBB cbb, session, child, child2; in SSL_SESSION_to_bytes_full()
/external/boringssl/src/crypto/x509/
Dpkcs7.c271 static int pkcs7_bundle(CBB *out, int (*cb)(CBB *out, const void *arg), in pkcs7_bundle()
273 CBB outer_seq, wrapped_seq, seq, version_bytes, digest_algos_set, in pkcs7_bundle()
295 static int pkcs7_bundle_certificates_cb(CBB *out, const void *arg) { in pkcs7_bundle_certificates_cb()
298 CBB certificates; in pkcs7_bundle_certificates_cb()
321 int PKCS7_bundle_certificates(CBB *out, const STACK_OF(X509) *certs) { in PKCS7_bundle_certificates()
325 static int pkcs7_bundle_crls_cb(CBB *out, const void *arg) { in pkcs7_bundle_crls_cb()
328 CBB crl_data; in pkcs7_bundle_crls_cb()
351 int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls) { in PKCS7_bundle_CRLs()
Dpkcs7_test.c472 CBB cbb; in test_cert_reparse()
536 CBB cbb; in test_crl_reparse()
/external/boringssl/src/crypto/rsa/
Drsa_asn1.c88 static int marshal_integer(CBB *cbb, BIGNUM *bn) { in marshal_integer()
146 int RSA_marshal_public_key(CBB *cbb, const RSA *rsa) { in RSA_marshal_public_key()
147 CBB child; in RSA_marshal_public_key()
160 CBB cbb; in RSA_public_key_to_bytes()
305 int RSA_marshal_private_key(CBB *cbb, const RSA *rsa) { in RSA_marshal_private_key()
309 CBB child; in RSA_marshal_private_key()
326 CBB other_prime_infos; in RSA_marshal_private_key()
335 CBB other_prime_info; in RSA_marshal_private_key()
356 CBB cbb; in RSA_private_key_to_bytes()
/external/boringssl/src/crypto/bn/
Dbn_asn1.c61 int BN_bn2cbb(CBB *cbb, const BIGNUM *bn) { in BN_bn2cbb()
68 CBB child; in BN_bn2cbb()
/external/boringssl/src/crypto/ecdsa/
Decdsa_asn1.c140 int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig) { in ECDSA_SIG_marshal()
141 CBB child; in ECDSA_SIG_marshal()
154 CBB cbb; in ECDSA_SIG_to_bytes()
/external/boringssl/src/
DSTYLE.md157 /* CBB_add_asn sets |*out_contents| to a |CBB| into which the contents of an
160 OPENSSL_EXPORT int CBB_add_asn1(CBB *cbb, CBB *out_contents, uint8_t tag);
/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp131 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto() local
134 VMap[&BB] = CBB; in CloneFunctionInto()
145 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
149 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto()
/external/boringssl/src/crypto/test/
Dscoped_types.h120 using ScopedCBB = ScopedOpenSSLContext<CBB, void, CBB_zero, CBB_cleanup>;
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp606 BasicBlock *CBB = in cloneCommonBlocks() local
610 CBB->insertInto(&F, BB->getNextNode()); in cloneCommonBlocks()
613 VMap[BB] = CBB; in cloneCommonBlocks()
616 Orig2Clone.emplace_back(BB, CBB); in cloneCommonBlocks()
/external/boringssl/src/crypto/obj/
Dobj.c304 OPENSSL_EXPORT int OBJ_nid2cbb(CBB *out, int nid) { in OBJ_nid2cbb()
306 CBB oid; in OBJ_nid2cbb()

123