summaryrefslogtreecommitdiff
path: root/src/crypto/bn_extra
diff options
context:
space:
mode:
authorRobert Sloan <varomodt@google.com>2017-10-30 14:10:28 -0700
committerRobert Sloan <varomodt@google.com>2017-10-30 14:10:51 -0700
commit29c1d2cf8620ad14e06d8e7ff91db8f4de04d481 (patch)
tree40c62dc13cf10cc29eab8e9caf1f6cf7a86ffee4 /src/crypto/bn_extra
parenta7dc4759b5f834b50a9be8dd3ec1abb7ff3e5bc5 (diff)
downloadboringssl-29c1d2cf8620ad14e06d8e7ff91db8f4de04d481.tar.gz
external/boringssl: Sync to ba94746eb2b4b59a0eb72047e4ca2d2d54454c87.
This includes the following changes: https://boringssl.googlesource.com/boringssl/+log/7f8c553d7f4db0a6ce727f2986d41bf8fe8ec4bf..ba94746eb2b4b59a0eb72047e4ca2d2d54454c87 Test: BoringSSL CTS Presubmits Change-Id: I5283ca8ec80f4abbc2543fece2ecf2b33240c6e4
Diffstat (limited to 'src/crypto/bn_extra')
-rw-r--r--src/crypto/bn_extra/bn_asn1.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/crypto/bn_extra/bn_asn1.c b/src/crypto/bn_extra/bn_asn1.c
index 8b939da5..0d96573a 100644
--- a/src/crypto/bn_extra/bn_asn1.c
+++ b/src/crypto/bn_extra/bn_asn1.c
@@ -42,22 +42,6 @@ int BN_parse_asn1_unsigned(CBS *cbs, BIGNUM *ret) {
return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL;
}
-int BN_parse_asn1_unsigned_buggy(CBS *cbs, BIGNUM *ret) {
- CBS child;
- if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) ||
- CBS_len(&child) == 0) {
- OPENSSL_PUT_ERROR(BN, BN_R_BAD_ENCODING);
- return 0;
- }
-
- // This function intentionally does not reject negative numbers or non-minimal
- // encodings. Estonian IDs issued between September 2014 to September 2015 are
- // broken. See https://crbug.com/532048 and https://crbug.com/534766.
- //
- // TODO(davidben): Remove this code and callers in March 2016.
- return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL;
-}
-
int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn) {
// Negative numbers are unsupported.
if (BN_is_negative(bn)) {