This HAL provides an interface to request RFC3161 timestamp tokens for a given hash. This is typically used for secure timestamping of data in conjunction with a Trusted Execution Environment (TEE).
The interface is defined in aidl/android/hardware/security/timestamp/ITimeStamper.aidl.
TimeStampReq: A parcelable containing the DER encoded RFC3161 TimeStampReq structure.createRfc3161TimestampToken(in TimeStampReq timestampReq): Takes a TimeStampReq and returns a byte[] containing the DER encoded RFC3161 TimeStampToken.The default implementation located in system/keymint/hal/src/timestamp.rs is an INSECURE implementation that communicates with a non-secure Trusted Application (TA) via a serialized channel.
SerializedChannel interface to send requests to the non-secure KeyMint TA.system/keymint/ta/src/timestamp.rs) provides a dummy implementation, returning a fixed ASN.1 SEQUENCE.