mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
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