/external/boringssl/src/crypto/bytestring/ |
cbb.c | 23 void CBB_zero(CBB *cbb) { 24 memset(cbb, 0, sizeof(CBB)); 27 static int cbb_init(CBB *cbb, uint8_t *buf, size_t cap) { 28 /* This assumes that |cbb| has already been zeroed. */ 41 cbb->base = base; 42 cbb->is_top_level = 1; 46 int CBB_init(CBB *cbb, size_t initial_capacity) [all...] |
bytestring_test.cc | 272 CBB cbb; local 274 if (!CBB_init(&cbb, 100)) { 277 CBB_cleanup(&cbb); 279 if (!CBB_init(&cbb, 0)) { 282 if (!CBB_add_u8(&cbb, 1) || 283 !CBB_add_u16(&cbb, 0x203) || 284 !CBB_add_u24(&cbb, 0x40506) || 285 !CBB_add_bytes(&cbb, (const uint8_t*) "\x07\x08", 2) || 286 !CBB_finish(&cbb, &buf, &buf_len)) 296 CBB cbb; local 323 CBB cbb, child; local 345 CBB cbb, contents, inner_contents, inner_inner_contents; local 374 ScopedCBB cbb; local 423 CBB cbb, child, contents; local 468 CBB cbb, contents, inner_contents; local 665 CBB cbb; local 707 CBB cbb; local 718 ScopedCBB cbb; local [all...] |
ber.c | 89 static int cbs_convert_ber(CBS *in, CBB *out, char squash_header, 99 CBB *out_contents, out_contents_storage; 197 CBB cbb; local 212 if (!CBB_init(&cbb, CBS_len(in))) { 215 if (!cbs_convert_ber(in, &cbb, 0, 0, 0)) { 216 CBB_cleanup(&cbb); 220 return CBB_finish(&cbb, out, out_len);
|
/external/boringssl/src/include/openssl/ |
bytestring.h | 31 * A "CBB" (CRYPTO ByteBuilder) is a memory buffer that grows as needed and 219 * |CBB| objects allow one to build length-prefixed serialisations. A |CBB| 221 * |CBB_init|. Several |CBB| objects can point at the same buffer when a 222 * length-prefix is pending, however only a single |CBB| can be 'current' at 224 * the new |CBB| points at the same buffer as the original. But if the original 225 * |CBB| is used then the length prefix is written out and the new |CBB| must 228 * If one needs to force a length prefix to be written out because a |CBB| is 241 /* child points to a child CBB if a length-prefix is pending. * [all...] |
ecdsa.h | 161 * the result to |cbb|. It returns one on success and zero on error. */ 162 OPENSSL_EXPORT int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig);
|
rsa.h | 350 * (RFC 3447) and appends the result to |cbb|. It returns one on success and 352 OPENSSL_EXPORT int RSA_marshal_public_key(CBB *cbb, const RSA *rsa); 372 * structure (RFC 3447) and appends the result to |cbb|. It returns one on 374 OPENSSL_EXPORT int RSA_marshal_private_key(CBB *cbb, const RSA *rsa);
|
bn.h | 256 /* BN_bn2cbb_padded behaves like |BN_bn2bin_padded| but writes to a |CBB|. */ 257 OPENSSL_EXPORT int BN_bn2cbb_padded(CBB *out, size_t len, const BIGNUM *in); 315 * to |cbb|. It returns one on success and zero on failure. */ 316 OPENSSL_EXPORT int BN_bn2cbb(CBB *cbb, const BIGNUM *bn); [all...] |
/external/boringssl/src/crypto/ecdsa/ |
ecdsa_asn1.c | 140 int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig) { 141 CBB child; 142 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || 145 !CBB_flush(cbb)) { 154 CBB cbb; local 155 CBB_zero(&cbb); 156 if (!CBB_init(&cbb, 0) || 157 !ECDSA_SIG_marshal(&cbb, sig) | [all...] |
ecdsa.c | 479 CBB cbb; local 480 CBB_zero(&cbb); 482 if (!CBB_init_fixed(&cbb, sig, ECDSA_size(eckey)) || 483 !ECDSA_SIG_marshal(&cbb, s) || 484 !CBB_finish(&cbb, NULL, &len)) { 486 CBB_cleanup(&cbb);
|
/external/boringssl/src/crypto/bn/ |
bn_asn1.c | 61 int BN_bn2cbb(CBB *cbb, const BIGNUM *bn) { 68 CBB child; 69 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER)) { 88 if (!CBB_flush(cbb)) {
|
bn_test.cc | 1836 CBB cbb; local 1926 CBB cbb; local [all...] |
/external/boringssl/src/crypto/rsa/ |
rsa_asn1.c | 88 static int marshal_integer(CBB *cbb, BIGNUM *bn) { 94 return BN_bn2cbb(cbb, bn); 146 int RSA_marshal_public_key(CBB *cbb, const RSA *rsa) { 147 CBB child; 148 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || 151 !CBB_flush(cbb)) { 160 CBB cbb; local 356 CBB cbb; local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/ |
Cube.java | 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); local 79 cbb.order(ByteOrder.nativeOrder()); 80 mColorBuffer = cbb.asIntBuffer();
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Cube.java | 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); local 79 cbb.order(ByteOrder.nativeOrder()); 80 mColorBuffer = cbb.asIntBuffer();
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
Cube.java | 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); local 79 cbb.order(ByteOrder.nativeOrder()); 80 mColorBuffer = cbb.asIntBuffer();
|
/external/boringssl/src/ssl/ |
s3_clnt.c | 592 static int ssl3_write_client_cipher_list(SSL *ssl, CBB *out) { 596 CBB child; 659 CBB cbb; local 660 CBB_zero(&cbb); 701 CBB child; 702 if (!CBB_init_fixed(&cbb, ssl_handshake_start(ssl), 704 !CBB_add_u16(&cbb, ssl->client_version) || 705 !CBB_add_bytes(&cbb, ssl->s3->client_random, SSL3_RANDOM_SIZE) || 706 !CBB_add_u8_length_prefixed(&cbb, &child) | 1582 CBB cbb; local 1783 CBB cbb, child; local 1972 CBB cbb, child; local 2046 CBB cbb, child; local [all...] |
d1_both.c | 324 CBB cbb; local 325 CBB_zero(&cbb); 372 if (!CBB_init_fixed(&cbb, buf, ssl->d1->mtu) || 373 !CBB_add_u8(&cbb, ssl->d1->w_msg_hdr.type) || 374 !CBB_add_u24(&cbb, ssl->d1->w_msg_hdr.msg_len) || 375 !CBB_add_u16(&cbb, ssl->d1->w_msg_hdr.seq) || 376 !CBB_add_u24(&cbb, ssl->init_off - DTLS1_HM_HEADER_LENGTH) || 377 !CBB_add_u24(&cbb, todo) || 379 &cbb, (const uint8_t *)ssl->init_buf->data + ssl->init_off, todo) | 624 CBB cbb; local [all...] |
s3_srvr.c | 647 CBB client_hello, hello_body, cipher_suites; 1142 CBB cbb, session_id; local 1209 CBB cbb, child; local [all...] |
ssl_asn1.c | 168 static int add_X509(CBB *cbb, X509 *x509) { 174 if (!CBB_add_space(cbb, &buf, len)) { 186 CBB cbb, session, child, child2; local 192 CBB_zero(&cbb); 193 if (!CBB_init(&cbb, 0) || 194 !CBB_add_asn1(&cbb, &session, CBS_ASN1_SEQUENCE) || 360 if (!CBB_finish(&cbb, out_data, out_len)) { 367 CBB_cleanup(&cbb); [all...] |
ssl_lib.c | 2215 CBB cbb; local 2248 CBB cbb; local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
RotationVectorDemo.java | 192 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); local 193 cbb.order(ByteOrder.nativeOrder()); 194 mColorBuffer = cbb.asFloatBuffer();
|
/external/mesa3d/src/gallium/drivers/nouveau/ |
nouveau_video.c | 106 int cbb; local 109 for (cbb = 0x20; cbb > 0; cbb >>= 1) { 110 if (cbb & cbp) { 142 int cbb; local 145 for (cbb = 0x20; cbb > 0; cbb >>= 1) { 146 if (cbb & cbp) [all...] |
/external/boringssl/src/crypto/x509/ |
pkcs7_test.c | 472 CBB cbb; local 536 CBB cbb; local [all...] |
/frameworks/base/core/jni/ |
android_hardware_Camera.cpp | 82 void addCallbackBuffer(JNIEnv *env, jbyteArray cbb, int msgType); 451 JNIEnv *env, jbyteArray cbb, int msgType) 454 if (cbb != NULL) { 458 jbyteArray callbackBuffer = (jbyteArray)env->NewGlobalRef(cbb); 474 jbyteArray callbackBuffer = (jbyteArray)env->NewGlobalRef(cbb); [all...] |
/external/guice/core/test/com/google/inject/spi/ |
ElementsTest.java | [all...] |