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

Commit 79cb9920 authored by Eran Messeri's avatar Eran Messeri
Browse files

Document the allowed challenge size

KeyMint should be able to handle challenges up to 128 bytes.
Document this (and the expected error code) in Tag.aidl.

Bug: 307714384
Test: m
Change-Id: Id099dd055c81b10d777effdf364395f84d8b35c6
parent db1da1c8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -643,6 +643,8 @@ enum Tag {
     * Tag::ATTESTATION_CHALLENGE is used to deliver a "challenge" value to the attested key
     * generation/import methods, which must place the value in the KeyDescription SEQUENCE of the
     * attestation extension.
     * The challenge value may be up to 128 bytes. If the caller provides a bigger challenge,
     * INVALID_INPUT_LENGTH error should be returned.
     *
     * Must never appear in KeyCharacteristics.
     */