diff options
author | Andrew Scull <ascull@google.com> | 2021-05-12 12:18:08 +0000 |
---|---|---|
committer | Andrew Scull <ascull@google.com> | 2021-05-12 15:08:51 +0000 |
commit | 29ba0649969d4fc4ad2e7edead48c9b1505e8fcd (patch) | |
tree | adae584aecfdad2a85252f32c38b2d50f2c7174e /identity | |
parent | 75d7e5de7cf2a47f5bc76b15512b3e3fd332baf4 (diff) |
identity: fix CBOR 8-byte integer encoding
8-byte intergers are identified by the additional information having the
value 27.
Test: atest VtsHalIdentityTargetTest
Change-Id: I986162c4966275d7589d99c08c7323445e1f9e80
Diffstat (limited to 'identity')
-rw-r--r-- | identity/aidl/default/libeic/EicCbor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/identity/aidl/default/libeic/EicCbor.c b/identity/aidl/default/libeic/EicCbor.c index fe131eb8b7..0e2684fec4 100644 --- a/identity/aidl/default/libeic/EicCbor.c +++ b/identity/aidl/default/libeic/EicCbor.c @@ -114,7 +114,7 @@ void eicCborBegin(EicCbor* cbor, int majorType, size_t size) { data[4] = size & 0xff; eicCborAppend(cbor, data, 5); } else { - data[0] = (majorType << 5) | 24; + data[0] = (majorType << 5) | 27; data[1] = (((uint64_t)size) >> 56) & 0xff; data[2] = (((uint64_t)size) >> 48) & 0xff; data[3] = (((uint64_t)size) >> 40) & 0xff; |