boringssl/crypto/bytestring
David Benjamin d9f49974e3 Support high tag numbers in CBS/CBB.
This is a reland of https://boringssl-review.googlesource.com/2330. I
believe I've now cleared the fallout.

Android's attestion format uses some ludicrously large tag numbers:
https://developer.android.com/training/articles/security-key-attestation.html#certificate_schema

Add support for these in CBS/CBB. The public API does not change for
callers who were using the CBS_ASN1_* constants, but it is no longer the
case that tag representations match their DER encodings for small tag
numbers. When passing tags into CBS/CBB, use CBS_ASN1_* constants. When
working with DER byte arrays (most commonly test vectors), use the
numbers themselves.

Bug: 214
Update-Note: The in-memory representation of CBS/CBB tags changes.
   Additionally, we now support tag numbers above 30. I believe I've now
   actually cleared the fallout of the former. There is one test in
   Chromium and the same test in the internal repository that needs
   fixing.

Change-Id: I49b9d30df01f023c646d31156360ff69c91626a3
Reviewed-on: https://boringssl-review.googlesource.com/24404
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2018-01-03 22:28:32 +00:00
..
asn1_compat.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ber.c Support high tag numbers in CBS/CBB. 2018-01-03 22:28:32 +00:00
bytestring_test.cc Support high tag numbers in CBS/CBB. 2018-01-03 22:28:32 +00:00
cbb.c Support high tag numbers in CBS/CBB. 2018-01-03 22:28:32 +00:00
cbs.c Support high tag numbers in CBS/CBB. 2018-01-03 22:28:32 +00:00
CMakeLists.txt Convert bytestring_test to GTest. 2017-04-17 14:19:47 +00:00
internal.h Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00