Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbc0db2c authored by Max Bires's avatar Max Bires
Browse files

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
parent 87a6fbc5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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.
     *     },