Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/security/src/android/security/cts/
DAslrTest.java82 double entropy = Math.log(addresses.size()) / Math.log(2); in calculateEntropyBits() local
84 Log.i(TAG, String.format("%.1f", entropy) + in calculateEntropyBits()
87 return (int) Math.round(entropy); in calculateEntropyBits()
96 int entropy = calculateEntropyBits(mappingName); in testMappingEntropy() local
99 entropy + " bits, >= " + aslrMinEntropyBits + " required)", in testMappingEntropy()
100 entropy >= aslrMinEntropyBits); in testMappingEntropy()
/cts/tests/aslr/src/
DAslrMallocTest.cpp124 size_t entropy = static_cast<size_t>(0.5 + in TestRandomization() local
128 entropy, size, minEntropyBits); in TestRandomization()
129 ALOGE_IF(entropy < minEntropyBits, in TestRandomization()
131 ASSERT_TRUE(entropy >= minEntropyBits); in TestRandomization()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java1006 double entropy = (-probabilityOfSetBit * logTwo(probabilityOfSetBit)) - in calculateShannonEntropy() local
1008 Log.i(TAG, "Shannon entropy of VB Key: " + entropy); in calculateShannonEntropy()
1009 return entropy; in calculateShannonEntropy()