Home | History | Annotate | Download | only in rsa_extra

Lines Matching refs:cbs

72 static int parse_integer_buggy(CBS *cbs, BIGNUM **out, int buggy) {
79 return BN_parse_asn1_unsigned_buggy(cbs, *out);
81 return BN_parse_asn1_unsigned(cbs, *out);
84 static int parse_integer(CBS *cbs, BIGNUM **out) {
85 return parse_integer_buggy(cbs, out, 0 /* not buggy */);
97 static RSA *parse_public_key(CBS *cbs, int buggy) {
102 CBS child;
103 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) ||
122 RSA *RSA_parse_public_key(CBS *cbs) {
123 return parse_public_key(cbs, 0 /* not buggy */);
126 RSA *RSA_parse_public_key_buggy(CBS *cbs) {
131 return parse_public_key(cbs, 1 /* buggy */);
135 CBS cbs;
136 CBS_init(&cbs, in, in_len);
137 RSA *ret = RSA_parse_public_key(&cbs);
138 if (ret == NULL || CBS_len(&cbs) != 0) {
176 RSA *RSA_parse_private_key(CBS *cbs) {
182 CBS child;
184 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) ||
224 CBS cbs;
225 CBS_init(&cbs, in, in_len);
226 RSA *ret = RSA_parse_private_key(&cbs);
227 if (ret == NULL || CBS_len(&cbs) != 0) {
272 CBS cbs;
273 CBS_init(&cbs, *inp, (size_t)len);
274 RSA *ret = RSA_parse_public_key(&cbs);
282 *inp = CBS_data(&cbs);
300 CBS cbs;
301 CBS_init(&cbs, *inp, (size_t)len);
302 RSA *ret = RSA_parse_private_key(&cbs);
310 *inp = CBS_data(&cbs);