Clarify the Weaver documentation am: a4742a0291 am: cf07ed821d

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

Change-Id: I437cdabf4c8e014c27f41dc66500aa10a4508a2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Eric Biggers
2023-07-20 18:27:59 +00:00
committed by Automerger Merge Worker

View File

@@ -20,8 +20,8 @@ import android.hardware.weaver.WeaverConfig;
import android.hardware.weaver.WeaverReadResponse;
/**
* Weaver provides secure storage of secret values that may only be read if the
* corresponding key has been presented.
* Weaver provides secure persistent storage of secret values that may only be
* read if the corresponding key has been presented.
*
* The storage must be secure as the device's user authentication and encryption
* relies on the security of these values. The cardinality of the domains of the
@@ -76,7 +76,8 @@ interface IWeaver {
WeaverReadResponse read(in int slotId, in byte[] key);
/**
* Overwrites the identified slot with the provided key and value.
* Overwrites the identified slot with the provided key and value, rendering
* the previous contents of the slot permanently unrecoverable.
*
* The new values are written regardless of the current state of the slot in
* order to remain idempotent.