Searched refs:verifiedBootKey (Results 1 – 2 of 2) sorted by relevance
36 private final byte[] verifiedBootKey; field in RootOfTrust52 verifiedBootKey = in RootOfTrust()61 RootOfTrust(byte[] verifiedBootKey, boolean deviceLocked, int verifiedBootState) { in RootOfTrust() argument62 this.verifiedBootKey = verifiedBootKey; in RootOfTrust()83 return verifiedBootKey; in getVerifiedBootKey()98 .append(verifiedBootKey != null ? in toString()99 BaseEncoding.base64().encode(verifiedBootKey) : in toString()109 private byte[] verifiedBootKey; field in RootOfTrust.Builder113 public Builder setVerifiedBootKey(byte[] verifiedBootKey) { in setVerifiedBootKey() argument114 this.verifiedBootKey = verifiedBootKey; in setVerifiedBootKey()[all …]
1140 private void checkEntropy(byte[] verifiedBootKey) { in checkEntropy() argument1141 assertTrue("Failed Shannon entropy check", checkShannonEntropy(verifiedBootKey)); in checkEntropy()1142 assertTrue("Failed BiEntropy check", checkTresBiEntropy(verifiedBootKey)); in checkEntropy()1145 private boolean checkShannonEntropy(byte[] verifiedBootKey) { in checkShannonEntropy() argument1146 … double probabilityOfSetBit = countSetBits(verifiedBootKey) / (double)(verifiedBootKey.length * 8); in checkShannonEntropy()1158 private boolean checkTresBiEntropy(byte[] verifiedBootKey) { in checkTresBiEntropy() argument1162 int length = verifiedBootKey.length * 8; in checkTresBiEntropy()1163 for(int i = 0; i < (verifiedBootKey.length * 8) - 2; i++) { in checkTresBiEntropy()1164 probabilityOfSetBit = countSetBits(verifiedBootKey) / (double)length; in checkTresBiEntropy()1167 deriveBitString(verifiedBootKey, length); in checkTresBiEntropy()