Home
last modified time | relevance | path

Searched refs:child (Results 1 – 23 of 23) sorted by relevance

/crypto/dsa/
A Ddsa_asn1.cc114 CBS child; in DSA_SIG_parse() local
118 CBS_len(&child) != 0) { in DSA_SIG_parse()
127 CBB child; in DSA_SIG_marshal() local
143 CBS child; in DSA_parse_public_key() local
149 CBS_len(&child) != 0) { in DSA_parse_public_key()
160 CBB child; in DSA_marshal_public_key() local
178 CBS child; in DSA_parse_parameters() local
183 CBS_len(&child) != 0) { in DSA_parse_parameters()
194 CBB child; in DSA_marshal_parameters() local
212 CBS child; in DSA_parse_private_key() local
[all …]
/crypto/bytestring/
A Dcbb.cc198 struct cbb_child_st *child = &cbb->child->u.child; in CBB_flush() local
200 size_t child_start = child->offset + child->pending_len_len; in CBB_flush()
203 if (!CBB_flush(cbb->child) || child_start < child->offset || in CBB_flush()
276 return cbb->u.child.base->buf + cbb->u.child.offset + in CBB_data()
287 return cbb->u.child.base->len - cbb->u.child.offset - in CBB_len()
485 base->len = cbb->child->u.child.offset; in CBB_discard_child()
487 cbb->child->u.child.base = NULL; in CBB_discard_child()
493 CBB child; in CBB_add_asn1_element() local
509 CBB child; in CBB_add_asn1_uint64_with_tag() local
563 CBB child; in CBB_add_asn1_int64_with_tag() local
[all …]
A Dbytestring_test.cc427 CBB child; in TEST() local
533 CBB child; in TEST() local
560 CBB child; in TEST() local
1000 CBS child; in TEST() local
1041 CBS child; in TEST() local
1060 CBS child; in TEST() local
1155 CBS child; in TEST() local
1196 CBS child; in TEST() local
1215 CBS child; in TEST() local
1266 CBB child; in TEST() local
[all …]
A Dcbs.cc558 CBS child; in CBS_get_optional_asn1_octet_string() local
560 if (!CBS_get_optional_asn1(cbs, &child, &present, tag)) { in CBS_get_optional_asn1_octet_string()
565 if (!CBS_get_asn1(&child, out, CBS_ASN1_OCTETSTRING) || in CBS_get_optional_asn1_octet_string()
566 CBS_len(&child) != 0) { in CBS_get_optional_asn1_octet_string()
580 CBS child; in CBS_get_optional_asn1_uint64() local
582 if (!CBS_get_optional_asn1(cbs, &child, &present, tag)) { in CBS_get_optional_asn1_uint64()
586 if (!CBS_get_asn1_uint64(&child, out) || CBS_len(&child) != 0) { in CBS_get_optional_asn1_uint64()
597 CBS child, child2; in CBS_get_optional_asn1_bool() local
599 if (!CBS_get_optional_asn1(cbs, &child, &present, tag)) { in CBS_get_optional_asn1_bool()
605 if (!CBS_get_asn1(&child, &child2, CBS_ASN1_BOOLEAN) || in CBS_get_optional_asn1_bool()
[all …]
A Dber.cc239 CBS child; in CBS_get_asn1_implicit_string() local
241 !CBS_get_asn1(in, &child, outer_tag | CBS_ASN1_CONSTRUCTED)) { in CBS_get_asn1_implicit_string()
245 while (CBS_len(&child) > 0) { in CBS_get_asn1_implicit_string()
247 if (!CBS_get_asn1(&child, &chunk, inner_tag) || in CBS_get_asn1_implicit_string()
/crypto/rsa/
A Drsa_asn1.cc54 CBS child; in RSA_parse_public_key() local
56 !parse_integer(&child, &ret->n) || in RSA_parse_public_key()
57 !parse_integer(&child, &ret->e) || in RSA_parse_public_key()
58 CBS_len(&child) != 0) { in RSA_parse_public_key()
86 CBB child; in RSA_marshal_public_key() local
121 CBS child; in RSA_parse_private_key() local
134 if (!parse_integer(&child, &ret->n) || in RSA_parse_private_key()
135 !parse_integer(&child, &ret->e) || in RSA_parse_private_key()
136 !parse_integer(&child, &ret->d) || in RSA_parse_private_key()
145 if (CBS_len(&child) != 0) { in RSA_parse_private_key()
[all …]
/crypto/dh/
A Ddh_asn1.cc52 CBS child; in DH_parse_parameters() local
53 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in DH_parse_parameters()
54 !parse_integer(&child, &ret->p) || in DH_parse_parameters()
55 !parse_integer(&child, &ret->g)) { in DH_parse_parameters()
61 if (CBS_len(&child) != 0) { in DH_parse_parameters()
62 if (!CBS_get_asn1_uint64(&child, &priv_length) || in DH_parse_parameters()
70 if (CBS_len(&child) != 0) { in DH_parse_parameters()
84 CBB child; in DH_marshal_parameters() local
85 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DH_marshal_parameters()
86 !marshal_integer(&child, dh->p) || in DH_marshal_parameters()
[all …]
/crypto/bn/
A Dbn_asn1.cc22 CBS child; in BN_parse_asn1_unsigned() local
24 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || in BN_parse_asn1_unsigned()
25 !CBS_is_valid_asn1_integer(&child, &is_negative)) { in BN_parse_asn1_unsigned()
35 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_parse_asn1_unsigned()
45 CBB child; in BN_marshal_asn1() local
46 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER) || in BN_marshal_asn1()
49 (BN_num_bits(bn) % 8 == 0 && !CBB_add_u8(&child, 0x00)) || in BN_marshal_asn1()
50 !BN_bn2cbb_padded(&child, BN_num_bytes(bn), bn) || in BN_marshal_asn1()
/crypto/x509/
A Dasn1_gen.cc136 CBB child; in generate_wrapped() local
137 return CBB_add_asn1(cbb, &child, tag) && in generate_wrapped()
138 (!padding || CBB_add_u8(&child, 0)) && in generate_wrapped()
315 CBB child; in generate_v3() local
316 if (!CBB_add_asn1(cbb, &child, tag)) { in generate_v3()
355 CBB_add_space(&child, &out, len) && in generate_v3()
442 CBB_add_space(&child, &out, len) && in generate_v3()
451 if (!CBB_add_u8(&child, 0)) { in generate_v3()
490 if (!generate_v3(&child, conf->value, cnf, /*tag=*/0, in generate_v3()
497 if (CBB_len(&child) > ASN1_GEN_MAX_OUTPUT) { in generate_v3()
[all …]
/crypto/ec/
A Dec_asn1.cc64 CBS child; in EC_KEY_parse_private_key() local
65 if (!CBS_get_asn1(&ec_private_key, &child, kParametersTag)) { in EC_KEY_parse_private_key()
69 const EC_GROUP *inner_group = EC_KEY_parse_parameters(&child); in EC_KEY_parse_private_key()
80 if (CBS_len(&child) != 0) { in EC_KEY_parse_private_key()
108 CBS child, public_key; in EC_KEY_parse_private_key() local
110 if (!CBS_get_asn1(&ec_private_key, &child, kPublicKeyTag) || in EC_KEY_parse_private_key()
111 !CBS_get_asn1(&child, &public_key, CBS_ASN1_BITSTRING) || in EC_KEY_parse_private_key()
121 CBS_len(&child) != 0) { in EC_KEY_parse_private_key()
173 CBB child; in EC_KEY_marshal_private_key() local
175 !EC_KEY_marshal_curve_name(&child, key->group) || in EC_KEY_marshal_private_key()
[all …]
/crypto/asn1/
A Da_object.cc41 CBB cbb, child; in i2d_ASN1_OBJECT() local
43 !CBB_add_asn1(&cbb, &child, CBS_ASN1_OBJECT) || in i2d_ASN1_OBJECT()
44 !CBB_add_bytes(&child, in->data, in->length)) { in i2d_ASN1_OBJECT()
97 CBS cbs, child; in d2i_ASN1_OBJECT() local
99 if (!CBS_get_asn1(&cbs, &child, CBS_ASN1_OBJECT)) { in d2i_ASN1_OBJECT()
104 const uint8_t *contents = CBS_data(&child); in d2i_ASN1_OBJECT()
105 ASN1_OBJECT *ret = c2i_ASN1_OBJECT(out, &contents, CBS_len(&child)); in d2i_ASN1_OBJECT()
A Da_bitstr.cc105 CBB child; in asn1_marshal_bit_string() local
107 return CBB_add_asn1(out, &child, tag) && // in asn1_marshal_bit_string()
108 CBB_add_space(&child, &ptr, static_cast<size_t>(len)) && // in asn1_marshal_bit_string()
A Da_int.cc82 CBB child; in asn1_marshal_integer() local
84 return CBB_add_asn1(out, &child, tag) && // in asn1_marshal_integer()
85 CBB_add_space(&child, &ptr, static_cast<size_t>(len)) && // in asn1_marshal_integer()
A Dasn1_test.cc3025 CBB child; local
3027 &seq, &child, CBS_ASN1_CONTEXT_SPECIFIC | CBS_ASN1_CONSTRUCTED | 0));
3028 ASSERT_TRUE(CBB_add_bytes(&child, inp.data(), inp.size()));
3030 &seq, &child, CBS_ASN1_CONTEXT_SPECIFIC | CBS_ASN1_CONSTRUCTED | 1));
3031 ASSERT_TRUE(CBB_add_bytes(&child, inp.data(), inp.size()));
3032 ASSERT_TRUE(CBB_add_bytes(&child, inp.data(), inp.size()));
/crypto/ecdsa/
A Decdsa_asn1.cc245 CBS child; in ECDSA_SIG_parse() local
246 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in ECDSA_SIG_parse()
247 !BN_parse_asn1_unsigned(&child, ret->r) || in ECDSA_SIG_parse()
248 !BN_parse_asn1_unsigned(&child, ret->s) || CBS_len(&child) != 0) { in ECDSA_SIG_parse()
269 CBB child; in ECDSA_SIG_marshal() local
270 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in ECDSA_SIG_marshal()
271 !BN_marshal_asn1(&child, sig->r) || !BN_marshal_asn1(&child, sig->s) || in ECDSA_SIG_marshal()
/crypto/rand/
A Dfork_detect_test.cc110 const pid_t child = fork(); in TEST() local
112 if (child == 0) { in TEST()
166 ASSERT_GT(child, 0) << "Error in fork: " << strerror(errno); in TEST()
168 ASSERT_EQ(child, WaitpidEINTR(child, &status, 0)) in TEST()
A Drand_test.cc69 pid_t child = fork(); in ForkAndRand() local
70 if (child < 0) { in ForkAndRand()
77 if (child == 0) { in ForkAndRand()
120 if (waitpid(child, &status, 0) < 0) { in ForkAndRand()
/crypto/fipsmodule/tls/
A Dkdf.cc.inc150 CBB cbb, child;
159 !CBB_add_u8_length_prefixed(&cbb, &child) ||
160 !CBB_add_bytes(&child, kProtocolLabel, sizeof(kProtocolLabel) - 1) ||
161 !CBB_add_bytes(&child, label, label_len) ||
162 !CBB_add_u8_length_prefixed(&cbb, &child) ||
163 !CBB_add_bytes(&child, hash, hash_len) ||
/crypto/pkcs7/
A Dpkcs7_x509.cc410 CBB seq, child, signing_algo, null, signature; in write_signer_info() local
431 if (!CBB_add_asn1(&seq, &child, CBS_ASN1_SEQUENCE) || in write_signer_info()
432 !x509_marshal_name(&child, X509_get_subject_name(si_data->sign_cert)) || in write_signer_info()
433 !asn1_marshal_integer(&child, in write_signer_info()
/crypto/curve25519/
A Dmake_curve25519_tables.py193 for child in large_precomp:
195 for val in child:
/crypto/trust_token/
A Dpmbtoken.cc135 CBB child; in cbb_add_prefixed_point() local
136 if (!CBB_add_u16_length_prefixed(out, &child) || in cbb_add_prefixed_point()
137 !point_to_cbb(&child, group, point) || !CBB_flush(out)) { in cbb_add_prefixed_point()
151 CBS child; in cbs_get_prefixed_point() local
153 if (!CBS_get_u16_length_prefixed(cbs, &child)) { in cbs_get_prefixed_point()
158 if (!CBS_get_bytes(cbs, &child, plen)) { in cbs_get_prefixed_point()
163 if (!ec_point_from_uncompressed(group, out, CBS_data(&child), in cbs_get_prefixed_point()
164 CBS_len(&child))) { in cbs_get_prefixed_point()
A Dvoprf.cc71 CBS child; in cbs_get_point() local
73 if (!CBS_get_bytes(cbs, &child, plen) || in cbs_get_point()
74 !ec_point_from_uncompressed(group, out, CBS_data(&child), in cbs_get_point()
75 CBS_len(&child))) { in cbs_get_point()
/crypto/pkcs8/
A Dpkcs8_x509.cc217 CBS child; in PKCS12_handle_sequence() local
218 if (!CBS_get_asn1(&in, &child, CBS_ASN1_SEQUENCE) || CBS_len(&in) != 0) { in PKCS12_handle_sequence()
223 while (CBS_len(&child) > 0) { in PKCS12_handle_sequence()
225 if (!CBS_get_asn1(&child, &element, CBS_ASN1_SEQUENCE)) { in PKCS12_handle_sequence()

Completed in 51 milliseconds