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

Commit ec52ecc0 authored by David Drysdale's avatar David Drysdale Committed by Automerger Merge Worker
Browse files

Merge "KeyMint HAL: cert dates are in milliseconds" am: 8d1d302f am: 8c00b2bc

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1697336

Change-Id: Ia25efbbabc263c19516cfa284508b0a8fe7288a5
parents fdb60f6a 8c00b2bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ union KeyParameterValue {
    boolean boolValue; // Always true, if present.
    int integer;
    long longInteger;
    long dateTime;
    long dateTime; // In milliseconds from epoch

    byte[] blob;
}
+4 −4
Original line number Diff line number Diff line
@@ -935,15 +935,15 @@ enum Tag {

    /**
     * Tag::CERTIFICATE_NOT_BEFORE the beginning of the validity of the certificate in UNIX epoch
     * time in seconds.  This value is used when generating attestation or self signed certificates.
     * ErrorCode::MISSING_NOT_BEFORE must be returned if this tag is not provided if this tag is not
     * provided to generateKey or importKey.
     * time in milliseconds.  This value is used when generating attestation or self signed
     * certificates.  ErrorCode::MISSING_NOT_BEFORE must be returned if this tag is not provided if
     * this tag is not provided to generateKey or importKey.
     */
    CERTIFICATE_NOT_BEFORE = (6 << 28) /* TagType:DATE */ | 1008,

    /**
     * Tag::CERTIFICATE_NOT_AFTER the end of the validity of the certificate in UNIX epoch time in
     * seconds.  This value is used when generating attestation or self signed certificates.
     * milliseconds.  This value is used when generating attestation or self signed certificates.
     * ErrorCode::MISSING_NOT_AFTER must be returned if this tag is not provided to generateKey or
     * importKey.
     */