Fixing spec discrepancy in MacedPublicKey

The algorithm choice was listed as -8 for ES256, when it should be -7.

Fixes: 217691766
Test: Everyone harmoniously agrees by +2'ing.
Change-Id: I7f73efff42ee6d2b3bfb94b74c1208170805b870
This commit is contained in:
Max Bires
2022-02-03 10:40:55 -08:00
parent 87a6fbc5cd
commit fbc0db2cd2

View File

@@ -37,10 +37,10 @@ parcelable MacedPublicKey {
*
* PublicKey = { // COSE_Key
* 1 : 2, // Key type : EC2
* 3 : -8 // Algorithm : ES256
* -1 : 6, // Curve : P256
* -2 : bstr // X coordinate, little-endian
* -3 : bstr // Y coordinate, little-endian
* 3 : -7, // Algorithm : ES256
* -1 : 1, // Curve : P256
* -2 : bstr, // X coordinate, little-endian
* -3 : bstr, // Y coordinate, little-endian
* ? -70000 : nil // Presence indicates this is a test key. If set, K_mac is
* // all zeros.
* },