INNER CODE UNIT · Java

toYesNoString

GrapheneOS/AttestationServer · src/main/java/app/attestation/server/AttestationProtocol.java:764

    private static String toYesNoString(final boolean value) {
        return value ? "yes" : "no";
    }

    record SecurityStateExt(
            int autoRebootSeconds, byte portSecurityMode, byte userCount, byte oemUnlocked) {
        static final int UNKNOWN_VALUE = -1;
        static final int INVALID_VALUE = -2;
    }

    private static void verify(final byte[] fingerprint,
            final Cache<ByteBuffer, Boolean> pendingChallenges, final long userId,
            final boolean paired, final ByteBuffer signedMessage, final byte[] signature,
            final Certificate[] attestationCertificates, final boolean userProfileSecure,
            final boolean accessibility, final boolean deviceAdmin,
            final boolean deviceAdminNonSystem, final boolean adbEnabled,
            final boolean addUsersWhenLocked, final boolean enrolledBiometrics,
            final boolean systemUser, final SecurityStateExt securityStateExt)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…