Skip to content
Snippets Groups Projects
Commit 83a90a4d authored by Eran Messeri's avatar Eran Messeri
Browse files

Clarifying the KM challenge size

KeyMint handles challenges up to 128 bytes. Document this in the
KeyGenParameterSpec Builder.

Bug: 307714384
Test: m
Change-Id: Ib2082edd12828649225c42de56e176540e997467
parent c056440a
No related branches found
No related tags found
No related merge requests found
......@@ -1596,6 +1596,8 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec, UserAu
* {@link #getAttestationChallenge()} returns non-null and the spec is used to generate a
* symmetric (AES or HMAC) key, {@link javax.crypto.KeyGenerator#generateKey()} will throw
* {@link java.security.InvalidAlgorithmParameterException}.
*
* <p>The challenge may be up to 128 bytes.
*/
@NonNull
public Builder setAttestationChallenge(byte[] attestationChallenge) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment