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

Commit 2f1328a7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "identity: Specify that challenges can be up to 32 bytes in length." am:...

Merge "identity: Specify that challenges can be up to 32 bytes in length." am: 6bf721e8 am: 2b08d4ce am: 8473d40e am: de600054

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1963461

Change-Id: I9d4fdd38268ef6bddb61bd89e2aed95d22635b2a
parents 1f67c2f2 de600054
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -454,7 +454,8 @@ public abstract class IdentityCredential {
     * @param challenge is a non-empty byte array whose contents should be unique, fresh and
     *                  provided by the issuing authority. The value provided is embedded in the
     *                  generated CBOR and enables the issuing authority to verify that the
     *                  returned proof is fresh.
     *                  returned proof is fresh. Implementations are required to support
     *                  challenges at least 32 bytes of length.
     * @return the COSE_Sign1 data structure above
     */
    public @NonNull byte[] proveOwnership(@NonNull byte[] challenge)  {
@@ -485,7 +486,8 @@ public abstract class IdentityCredential {
     * @param challenge is a non-empty byte array whose contents should be unique, fresh and
     *                  provided by the issuing authority. The value provided is embedded in the
     *                  generated CBOR and enables the issuing authority to verify that the
     *                  returned proof is fresh.
     *                  returned proof is fresh. Implementations are required to support
     *                  challenges at least 32 bytes of length.
     * @return the COSE_Sign1 data structure above
     */
    public @NonNull byte[] delete(@NonNull byte[] challenge)  {
+2 −1
Original line number Diff line number Diff line
@@ -59,7 +59,8 @@ public abstract class WritableIdentityCredential {
     * @param challenge is a non-empty byte array whose contents should be unique, fresh and
     *                  provided by the issuing authority. The value provided is embedded in the
     *                  attestation extension and enables the issuing authority to verify that the
     *                  attestation certificate is fresh.
     *                  attestation certificate is fresh. Implementations are required to support
     *                  challenges at least 32 bytes of length.
     * @return the X.509 certificate for this credential's CredentialKey.
     */
    public abstract @NonNull Collection<X509Certificate> getCredentialKeyCertificateChain(