Searched refs:verifiedBootKey (Results 1 – 2 of 2) sorted by relevance
36 private final byte[] verifiedBootKey; field in RootOfTrust47 verifiedBootKey = in RootOfTrust()70 return verifiedBootKey; in getVerifiedBootKey()85 .append(BaseEncoding.base64().encode(verifiedBootKey)) in toString()
994 private void checkEntropy(byte[] verifiedBootKey) { in checkEntropy() argument995 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() argument1000 … double probabilityOfSetBit = countSetBits(verifiedBootKey) / (double)(verifiedBootKey.length * 8); in checkShannonEntropy()1012 private boolean checkTresBiEntropy(byte[] verifiedBootKey) { in checkTresBiEntropy() argument1016 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()