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

Commit b3229b6f authored by Karuna Wadhera's avatar Karuna Wadhera Committed by Gerrit Code Review
Browse files

Merge "Add @deprecated and @return error annotations" into main

parents 01b7d9ea 854528e1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -45,6 +45,9 @@ interface IKeyMintDevice {
  void deleteAllKeys();
  void destroyAttestationIds();
  android.hardware.security.keymint.BeginResult begin(in android.hardware.security.keymint.KeyPurpose purpose, in byte[] keyBlob, in android.hardware.security.keymint.KeyParameter[] params, in @nullable android.hardware.security.keymint.HardwareAuthToken authToken);
  /**
   * @deprecated Method has never been used due to design limitations
   */
  void deviceLocked(in boolean passwordOnly, in @nullable android.hardware.security.secureclock.TimeStampToken timestampToken);
  void earlyBootEnded();
  byte[] convertStorageKeyToEphemeral(in byte[] storageKeyBlob);
+6 −4
Original line number Diff line number Diff line
@@ -826,6 +826,7 @@ interface IKeyMintDevice {
     *
     * @param passwordOnly N/A due to the deprecation
     * @param timestampToken N/A due to the deprecation
     * @deprecated Method has never been used due to design limitations
     */
    void deviceLocked(in boolean passwordOnly, in @nullable TimeStampToken timestampToken);

@@ -964,10 +965,11 @@ interface IKeyMintDevice {
     * IKeyMintDevice must ignore KeyParameters with tags not included in the following list:
     *
     * o Tag::MODULE_HASH: holds a hash that must be included in attestations in the moduleHash
     *   field of the software enforced authorization list. If Tag::MODULE_HASH is included in more
     *   than one setAdditionalAttestationInfo call, the implementation should compare the initial
     *   KeyParamValue with the more recent one. If they differ, the implementation should fail with
     *   ErrorCode::MODULE_HASH_ALREADY_SET. If they are the same, no action needs to be taken.
     *   field of the software enforced authorization list.
     *
     * @return error ErrorCode::MODULE_HASH_ALREADY_SET if this is not the first time
     *         setAdditionalAttestationInfo is called with Tag::MODULE_HASH, and the associated
     *         KeyParamValue of the current call doesn't match the KeyParamValue of the first call.
     */
    void setAdditionalAttestationInfo(in KeyParameter[] info);
}