Skip to content

Commit

Permalink
use SECURITY_LEVEL_STRONGBOX constant
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed May 18, 2019
1 parent 6bd764d commit befdc93
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -521,14 +521,14 @@ private static Verified verifyStateless(final Certificate[] certificates,
final DeviceInfo device;
final boolean stock;
if (verifiedBootState == RootOfTrust.KM_VERIFIED_BOOT_SELF_SIGNED) {
if (attestationSecurityLevel == 2) {
if (attestationSecurityLevel == SECURITY_LEVEL_STRONGBOX) {
device = fingerprintsStrongBoxGrapheneOS.get(verifiedBootKey);
} else {
device = fingerprintsGrapheneOS.get(verifiedBootKey);
}
stock = false;
} else if (verifiedBootState == RootOfTrust.KM_VERIFIED_BOOT_VERIFIED) {
if (attestationSecurityLevel == 2) {
if (attestationSecurityLevel == SECURITY_LEVEL_STRONGBOX) {
device = fingerprintsStrongBoxStock.get(verifiedBootKey);
} else {
device = fingerprintsStock.get(verifiedBootKey);
Expand Down

0 comments on commit befdc93

Please sign in to comment.