/crypto/dsa/ |
A D | dsa_asn1.cc | 114 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 D | cbb.cc | 198 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 D | bytestring_test.cc | 427 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 D | cbs.cc | 558 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 D | ber.cc | 239 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 D | rsa_asn1.cc | 54 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 D | dh_asn1.cc | 52 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 D | bn_asn1.cc | 22 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 D | asn1_gen.cc | 136 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 D | ec_asn1.cc | 64 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 D | a_object.cc | 41 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 D | a_bitstr.cc | 105 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 D | a_int.cc | 82 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 D | asn1_test.cc | 3025 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 D | ecdsa_asn1.cc | 245 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 D | fork_detect_test.cc | 110 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 D | rand_test.cc | 69 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 D | kdf.cc.inc | 150 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 D | pkcs7_x509.cc | 410 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 D | make_curve25519_tables.py | 193 for child in large_precomp: 195 for val in child:
|
/crypto/trust_token/ |
A D | pmbtoken.cc | 135 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 D | voprf.cc | 71 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 D | pkcs8_x509.cc | 217 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()
|