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

Commit a8d103dd authored by David Drysdale's avatar David Drysdale
Browse files

KeyMint HAL: cert dates are in milliseconds

Bug: 188385338
Test: None, comment change only
Merged-In: I6251d4a0ba74d111f4c107f9a54a5c45811aa90f
Change-Id: I6251d4a0ba74d111f4c107f9a54a5c45811aa90f
parent 561d79e0
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.
     */