HomeSort by relevance Sort by last modified time
    Searched refs:cbb (Results 1 - 25 of 74) sorted by null

1 2 3

  /external/boringssl/src/crypto/bytestring/
cbb.c 27 void CBB_zero(CBB *cbb) {
28 OPENSSL_memset(cbb, 0, sizeof(CBB));
31 static int cbb_init(CBB *cbb, uint8_t *buf, size_t cap) {
32 // This assumes that |cbb| has already been zeroed.
46 cbb->base = base;
47 cbb->is_top_level = 1;
51 int CBB_init(CBB *cbb, size_t initial_capacity)
    [all...]
asn1_compat.c 28 int CBB_finish_i2d(CBB *cbb, uint8_t **outp) {
29 assert(cbb->base->can_resize);
33 if (!CBB_finish(cbb, &der, &der_len)) {
34 CBB_cleanup(cbb);
bytestring_test.cc 311 CBB cbb; local
312 ASSERT_TRUE(CBB_init(&cbb, 100));
313 CBB_cleanup(&cbb);
321 bssl::ScopedCBB cbb; local
322 ASSERT_TRUE(CBB_init(cbb.get(), 100));
323 cbb.Reset();
325 ASSERT_TRUE(CBB_init(cbb.get(), 0));
326 ASSERT_TRUE(CBB_add_u8(cbb.get(), 1));
327 ASSERT_TRUE(CBB_add_u16(cbb.get(), 0x203))
338 bssl::ScopedCBB cbb; local
368 bssl::ScopedCBB cbb; local
385 bssl::ScopedCBB cbb; local
412 bssl::ScopedCBB cbb; local
456 bssl::ScopedCBB cbb; local
497 bssl::ScopedCBB cbb; local
737 bssl::ScopedCBB cbb; local
756 CBB cbb; local
766 bssl::ScopedCBB cbb; local
786 bssl::ScopedCBB cbb; local
953 bssl::ScopedCBB cbb; local
971 bssl::ScopedCBB cbb; local
1020 bssl::ScopedCBB cbb; local
1046 bssl::ScopedCBB cbb; local
    [all...]
internal.h 61 // CBB_finish_i2d calls |CBB_finish| on |cbb| which must have been initialized
65 // error, it calls |CBB_cleanup| on |cbb|.
68 int CBB_finish_i2d(CBB *cbb, uint8_t **outp);
ber.c 111 static int cbs_convert_ber(CBS *in, CBB *out, unsigned string_tag,
123 CBB *out_contents, out_contents_storage;
193 CBB cbb; local
208 if (!CBB_init(&cbb, CBS_len(in)) ||
209 !cbs_convert_ber(in, &cbb, 0, 0, 0) ||
210 !CBB_finish(&cbb, out, out_len)) {
211 CBB_cleanup(&cbb);
233 CBB result;
cbs.c 567 static int add_decimal(CBB *out, uint64_t v) {
574 CBB cbb; local
575 if (!CBB_init(&cbb, 32)) {
587 if (!CBB_add_bytes(&cbb, (const uint8_t *)"2.", 2) ||
588 !add_decimal(&cbb, v - 80)) {
591 } else if (!add_decimal(&cbb, v / 40) ||
592 !CBB_add_u8(&cbb, '.') ||
593 !add_decimal(&cbb, v % 40)) {
599 !CBB_add_u8(&cbb, '.') |
    [all...]
  /external/boringssl/src/crypto/rsa_extra/
rsa_asn1.c 81 static int marshal_integer(CBB *cbb, BIGNUM *bn) {
87 return BN_marshal_asn1(cbb, bn);
127 int RSA_marshal_public_key(CBB *cbb, const RSA *rsa) {
128 CBB child;
129 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) ||
132 !CBB_flush(cbb)) {
141 CBB cbb; local
237 CBB cbb; local
268 CBB cbb; local
296 CBB cbb; local
    [all...]
  /external/boringssl/src/crypto/dsa/
dsa_asn1.c 76 static int marshal_integer(CBB *cbb, BIGNUM *bn) {
82 return BN_marshal_asn1(cbb, bn);
102 int DSA_SIG_marshal(CBB *cbb, const DSA_SIG *sig) {
103 CBB child;
104 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) ||
107 !CBB_flush(cbb)) {
133 int DSA_marshal_public_key(CBB *cbb, const DSA *dsa)
248 CBB cbb; local
276 CBB cbb; local
304 CBB cbb; local
332 CBB cbb; local
    [all...]
  /external/boringssl/src/include/openssl/
bytestring.h 33 // A "CBB" (CRYPTO ByteBuilder) is a memory buffer that grows as needed and
175 // bit. |CBS| and |CBB| APIs consider the constructed bit to be part of the
296 // |CBB| objects allow one to build length-prefixed serialisations. A |CBB|
298 // |CBB_init|. Several |CBB| objects can point at the same buffer when a
299 // length-prefix is pending, however only a single |CBB| can be 'current' at
301 // the new |CBB| points at the same buffer as the original. But if the original
302 // |CBB| is used then the length prefix is written out and the new |CBB| must
305 // If one needs to force a length prefix to be written out because a |CBB| i
    [all...]
  /external/boringssl/src/crypto/dh/
dh_asn1.c 77 static int marshal_integer(CBB *cbb, BIGNUM *bn) {
83 return BN_marshal_asn1(cbb, bn);
120 int DH_marshal_parameters(CBB *cbb, const DH *dh) {
121 CBB child;
122 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) ||
127 !CBB_flush(cbb)) {
153 CBB cbb; local
    [all...]
  /external/boringssl/src/crypto/ecdsa_extra/
ecdsa_asn1.c 91 CBB cbb; local
92 CBB_zero(&cbb);
94 if (!CBB_init_fixed(&cbb, sig, ECDSA_size(eckey)) ||
95 !ECDSA_SIG_marshal(&cbb, s) ||
96 !CBB_finish(&cbb, NULL, &len)) {
98 CBB_cleanup(&cbb);
189 int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig) {
190 CBB child
203 CBB cbb; local
268 CBB cbb; local
    [all...]
  /external/boringssl/src/crypto/bn_extra/
bn_asn1.c 45 int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn) {
52 CBB child;
53 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER) ||
58 !CBB_flush(cbb)) {
convert.c 72 int BN_bn2cbb_padded(CBB *out, size_t len, const BIGNUM *in) {
249 CBB cbb; local
250 if (!CBB_init(&cbb, 16) ||
251 !CBB_add_u8(&cbb, 0 /* trailing NUL */)) {
256 if (!CBB_add_u8(&cbb, '0')) {
273 if (!CBB_add_u8(&cbb, '0' + word % 10)) {
283 !CBB_add_u8(&cbb, '-')) {
289 if (!CBB_finish(&cbb, &data, &len)) {
307 CBB_cleanup(&cbb);
    [all...]
  /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiRecoveryLib/
PeiRecoveryLib.inf 24 FILE_GUID = C0227547-0811-4cbb-ABEA-DECD22829122
  /external/libchrome/crypto/
rsa_private_key.cc 88 bssl::ScopedCBB cbb; local
89 if (!CBB_init(cbb.get(), 0) ||
90 !EVP_marshal_private_key(cbb.get(), key_.get()) ||
91 !CBB_finish(cbb.get(), &der, &der_len)) {
103 bssl::ScopedCBB cbb; local
104 if (!CBB_init(cbb.get(), 0) ||
105 !EVP_marshal_public_key(cbb.get(), key_.get()) ||
106 !CBB_finish(cbb.get(), &der, &der_len)) {
  /external/nos/host/android/hals/keymaster/
export_key.cpp 69 CBB cbb; local
71 CBB_init_fixed(&cbb, data, 1024);
74 if (!EVP_marshal_public_key(&cbb, pkey.get())) {
81 data), CBB_len(&cbb), true /* Transfer ownership. */);
85 CBB_cleanup(&cbb);
161 CBB cbb; local
163 CBB_init_fixed(&cbb, data, 256);
164 if (!EVP_marshal_public_key(&cbb, pkey.get()))
    [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();
  /packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cube/
Cube.java 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); local
79 cbb.order(ByteOrder.nativeOrder());
80 mColorBuffer = cbb.asIntBuffer();
  /external/boringssl/src/ssl/
tls13_both.cc 57 ScopedCBB cbb; local
58 if (!CBB_init(cbb.get(), 64 + 33 + 1 + 2 * EVP_MAX_MD_SIZE)) {
64 if (!CBB_add_u8(cbb.get(), 0x20)) {
86 if (!CBB_add_bytes(cbb.get(),
96 !CBB_add_bytes(cbb.get(), context_hash, context_hash_len) ||
97 !CBBFinishArray(cbb.get(), out)) {
356 ScopedCBB cbb; local
357 CBB body, certificate_list;
358 if (!ssl->method->init_message(ssl, cbb.get(), &body, SSL3_MT_CERTIFICATE) ||
367 return ssl_add_message_cbb(ssl, cbb.get())
433 ScopedCBB cbb; local
486 ScopedCBB cbb; local
516 ScopedCBB cbb; local
    [all...]
d1_both.cc 154 ScopedCBB cbb; local
171 if (!CBB_init_fixed(cbb.get(), frag->data, DTLS1_HM_HEADER_LENGTH) ||
172 !CBB_add_u8(cbb.get(), msg_hdr->type) ||
173 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) ||
174 !CBB_add_u16(cbb.get(), msg_hdr->seq) ||
175 !CBB_add_u24(cbb.get(), 0 /* frag_off */) ||
176 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) ||
177 !CBB_finish(cbb.get(), NULL, NULL)) {
511 bool dtls1_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type)
689 ScopedCBB cbb; local
    [all...]
ssl_asn1.cc 200 static int SSL_SESSION_to_bytes_full(const SSL_SESSION *in, CBB *cbb,
206 CBB session, child, child2;
207 if (!CBB_add_asn1(cbb, &session, CBS_ASN1_SEQUENCE) ||
398 return CBB_flush(cbb);
759 int ssl_session_serialize(const SSL_SESSION *in, CBB *cbb) {
760 return SSL_SESSION_to_bytes_full(in, cbb, 0);
785 ScopedCBB cbb; local
786 if (!CBB_init(cbb.get(), 256) |
797 ScopedCBB cbb; local
    [all...]
  /external/boringssl/src/crypto/digest_extra/
digest_test.cc 222 bssl::ScopedCBB cbb; local
223 ASSERT_TRUE(CBB_init(cbb.get(), 0));
224 EXPECT_FALSE(EVP_marshal_digest_algorithm(cbb.get(), EVP_md5_sha1()));
237 cbb.Reset();
238 ASSERT_TRUE(CBB_init(cbb.get(), 0));
239 ASSERT_TRUE(EVP_marshal_digest_algorithm(cbb.get(), EVP_sha256()));
242 ASSERT_TRUE(CBB_finish(cbb.get(), &der, &der_len));
  /external/boringssl/src/crypto/ec_extra/
ec_asn1.c 193 int EC_KEY_marshal_private_key(CBB *cbb, const EC_KEY *key,
200 CBB ec_private_key, private_key;
201 if (!CBB_add_asn1(cbb, &ec_private_key, CBS_ASN1_SEQUENCE) ||
212 CBB child;
223 CBB child, public_key;
237 if (!CBB_flush(cbb)) {
350 int EC_KEY_marshal_curve_name(CBB *cbb, const EC_GROUP *group) {
361 CBB child
449 CBB cbb; local
492 CBB cbb; local
    [all...]

Completed in 401 milliseconds

1 2 3