Remove KeyMint TODOs

Remove TODOs from the KeyMint specification that were not concrete
enough or did not have enough context to act upon.

Bug: 183737811
Test: That it compiles.
Change-Id: I01899be5e65e9943053aa796a2ab23f1a783a1aa
This commit is contained in:
Eran Messeri
2021-06-18 13:03:30 +01:00
parent 98949afb70
commit 2950654d44
4 changed files with 3 additions and 9 deletions

View File

@@ -233,8 +233,6 @@ interface IKeyMintDevice {
* indistinguishable from random. Thus, if the entropy from any source is good, the output
* must be good.
*
* TODO(seleneh) specify what mixing functions and cprng we allow.
*
* @param data Bytes to be mixed into the CRNG seed. The caller must not provide more than 2
* KiB of data per invocation.
*

View File

@@ -29,7 +29,6 @@ parcelable KeyMintHardwareInfo {
* Implementation version of the keymint hardware. The version number is implementation
* defined, and not necessarily globally meaningful. The version is used to distinguish
* between different versions of a given implementation.
* TODO(seleneh) add the version related info to the code.
*/
int versionNumber;

View File

@@ -17,8 +17,6 @@
package android.hardware.security.keymint;
/**
* TODO(seleneh) update the description.
*
* Padding modes that may be applied to plaintext for encryption operations. This list includes
* padding modes for both symmetric and asymmetric algorithms. Note that implementations should not
* provide all possible combinations of algorithm and padding, only the

View File

@@ -268,10 +268,6 @@ enum Tag {
USAGE_EXPIRE_DATETIME = TagType.DATE | 402,
/**
* TODO(seleneh) this tag need to be deleted.
*
* TODO(seleneh) this tag need to be deleted.
*
* Tag::MIN_SECONDS_BETWEEN_OPS specifies the minimum amount of time that elapses between
* allowed operations using a key. This can be used to rate-limit uses of keys in contexts
* where unlimited use may enable brute force attacks.
@@ -289,6 +285,8 @@ enum Tag {
* fails because the table is full, KeyMint returns ErrorCode::TOO_MANY_OPERATIONS.
*
* Must be hardware-enforced.
*
* TODO(b/191458710): find out if this tag is still supported.
*/
MIN_SECONDS_BETWEEN_OPS = TagType.UINT | 403,
@@ -876,6 +874,7 @@ enum Tag {
STORAGE_KEY = TagType.BOOL | 722,
/**
* OBSOLETE: Do not use. See IKeyMintOperation.updateAad instead.
* TODO: Delete when keystore1 is deleted.
*/
ASSOCIATED_DATA = TagType.BYTES | 1000,