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

Commit 824c5d8f authored by David Drysdale's avatar David Drysdale Committed by Gerrit Code Review
Browse files

Merge "KeyMint HAL: clarify leaf cert requirements"

parents 96ed41b2 9daf7c70
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -99,8 +99,7 @@ parcelable KeyCreationResult {
     * X.509 certificates ordered such that each certificate is signed by the subsequent one, up to
     * the root which must be self-signed (or contain a fake signature in the case of case 4 above).
     * The first certificate in the chain signs the public key info of the newly-generated or
     * newly-imported key pair.  In the attestation cases (1 and 2 above), the first certificate
     * must also satisfy some other requirements:
     * newly-imported key pair.  The first certificate must also satisfy some other requirements:
     *
     * o It must have the serial number provided in Tag::CERTIFICATE_SERIAL, or default to 1 if the
     *   tag is not provided.
@@ -119,7 +118,8 @@ parcelable KeyCreationResult {
     *    - the keyAgreement bit set iff the attested key has KeyPurpose::AGREE_KEY, and
     *    - the keyCertSignBit set iff the attested key has KeyPurpose::ATTEST_KEY.
     *
     * o it must contain a KeyDescription attestation extension with OID 1.3.6.1.4.1.11129.2.1.17.
     * In the attestation cases (1 and 2 above), the first certificate must contain a
     * KeyDescription attestation extension with OID 1.3.6.1.4.1.11129.2.1.17.
     *
     * The KeyDescription content is defined by the following ASN.1 schema, which is mostly a
     * straightforward translation of the KeyMint tag/value parameter lists to ASN.1.