From 3e02c8574bdec9b9eb53de4794c1b6fb53ca6bcb Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 11 Feb 2021 21:50:31 -0500 Subject: [PATCH] log attestationVersion / keymasterVersion --- .../main/java/app/attestation/auditor/AttestationProtocol.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/app/attestation/auditor/AttestationProtocol.java b/app/src/main/java/app/attestation/auditor/AttestationProtocol.java index 2083945d2..52e45c6f2 100644 --- a/app/src/main/java/app/attestation/auditor/AttestationProtocol.java +++ b/app/src/main/java/app/attestation/auditor/AttestationProtocol.java @@ -674,10 +674,12 @@ private static Verified verifyStateless(final Certificate[] certificates, // version sanity checks final int attestationVersion = attestation.getAttestationVersion(); + Log.d(TAG, "attestationVersion: " + attestationVersion); if (attestationVersion < device.attestationVersion) { throw new GeneralSecurityException("attestation version " + attestationVersion + " below " + device.attestationVersion); } final int keymasterVersion = attestation.getKeymasterVersion(); + Log.d(TAG, "keymasterVersion: " + keymasterVersion); if (keymasterVersion < device.keymasterVersion) { throw new GeneralSecurityException("keymaster version " + keymasterVersion + " below " + device.keymasterVersion); }