summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorMax Bires <jbires@google.com>2019-10-16 13:02:11 -0700
committerMax Bires <jbires@google.com>2019-10-16 15:21:14 -0700
commita722ff42a961e12d284b64f3b2d633dc4c2ee81f (patch)
tree067e04fb15ad1dfd29b99ac7c4bb63e805b4eb36 /identity/support/src/cppbor_parse.cpp
parent21eb2f5359d8aa74313b9cff1315fa53079f5bf0 (diff)
Adding test to check that ASN.1 lengths are properly encoded
This test checks that length metadata for the ASN.1 encoding of attestation application ids are correct. It generates an app id that will have a length between 127 and 256, which should create an encoding that requires two bytes of length metadata - one byte to specify how many bytes are needed for the length, and one byte for the length. Some implementations of keymaster only use one byte in this case, which will fail on strict ASN.1 parsers. Bug: 142674020 Test: m VtsHalKeymasterV4_0TargetTest && adb sync data \ && adb shell data/nativetest64/VtsHalKeymasterV4_0TargetTest/VtsHalKeymasterV4_0TargetTest Change-Id: I7dfc38a09247eb3cb237f33a202044668d15cbca
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions