Skip to content

Commit

Permalink
log attestationVersion / keymasterVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Feb 12, 2021
1 parent b580241 commit 2a3521b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,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);
}
Expand Down

0 comments on commit 2a3521b

Please sign in to comment.