Home
last modified time | relevance | path

Searched refs:verifiedBootKey (Results 1 – 2 of 2) sorted by relevance

/cts/tests/security/src/android/keystore/cts/
DRootOfTrust.java36 private final byte[] verifiedBootKey; field in RootOfTrust
47 verifiedBootKey = in RootOfTrust()
70 return verifiedBootKey; in getVerifiedBootKey()
85 .append(BaseEncoding.base64().encode(verifiedBootKey)) in toString()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java994 private void checkEntropy(byte[] verifiedBootKey) { in checkEntropy() argument
995 assertTrue("Failed Shannon entropy check", checkShannonEntropy(verifiedBootKey)); in checkEntropy()
996 assertTrue("Failed BiEntropy check", checkTresBiEntropy(verifiedBootKey)); in checkEntropy()
999 private boolean checkShannonEntropy(byte[] verifiedBootKey) { in checkShannonEntropy() argument
1000 … double probabilityOfSetBit = countSetBits(verifiedBootKey) / (double)(verifiedBootKey.length * 8); in checkShannonEntropy()
1012 private boolean checkTresBiEntropy(byte[] verifiedBootKey) { in checkTresBiEntropy() argument
1016 int length = verifiedBootKey.length * 8; in checkTresBiEntropy()
1017 for(int i = 0; i < (verifiedBootKey.length * 8) - 2; i++) { in checkTresBiEntropy()
1018 probabilityOfSetBit = countSetBits(verifiedBootKey) / (double)length; in checkTresBiEntropy()
1021 deriveBitString(verifiedBootKey, length); in checkTresBiEntropy()