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
52 verifiedBootKey = in RootOfTrust()
61 RootOfTrust(byte[] verifiedBootKey, boolean deviceLocked, int verifiedBootState) { in RootOfTrust() argument
62 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.Builder
113 public Builder setVerifiedBootKey(byte[] verifiedBootKey) { in setVerifiedBootKey() argument
114 this.verifiedBootKey = verifiedBootKey; in setVerifiedBootKey()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java1140 private void checkEntropy(byte[] verifiedBootKey) { in checkEntropy() argument
1141 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() argument
1146 … double probabilityOfSetBit = countSetBits(verifiedBootKey) / (double)(verifiedBootKey.length * 8); in checkShannonEntropy()
1158 private boolean checkTresBiEntropy(byte[] verifiedBootKey) { in checkTresBiEntropy() argument
1162 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()