Home
last modified time | relevance | path

Searched refs:rng (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGeneratorTest.java134 SecureRandom rng = new SecureRandom(); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() local
140 keyGenerator.init(keySizeBits, rng); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()
166 SecureRandom rng = new SecureRandom(); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local
171 keyGenerator.init((AlgorithmParameterSpec) null, rng); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local
227 CountingSecureRandom rng = new CountingSecureRandom(); in testAesKeySupportedSizes() local
230 rng.resetCounters(); in testAesKeySupportedSizes()
242 rng.resetCounters(); in testAesKeySupportedSizes()
244 keyGenerator.init(spec, rng); in testAesKeySupportedSizes()
247 assertEquals((i + 7) / 8, rng.getOutputSizeBytes()); in testAesKeySupportedSizes()
250 keyGenerator.init(spec, rng); in testAesKeySupportedSizes()
[all …]
DCipherTest.java1487 CountingSecureRandom rng = new CountingSecureRandom(); in testEntropyConsumption() local
1505 rng.resetCounters(); in testEntropyConsumption()
1506 cipher.init(Cipher.ENCRYPT_MODE, encryptionKey, rng); in testEntropyConsumption()
1546 assertEquals(expectedEntropyBytesConsumedDuringInit, rng.getOutputSizeBytes()); in testEntropyConsumption()
1550 rng.resetCounters(); in testEntropyConsumption()
1552 assertEquals(0, rng.getOutputSizeBytes()); in testEntropyConsumption()
1555 rng.resetCounters(); in testEntropyConsumption()
1587 expectedEntropyBytesConsumedDuringDoFinal, rng.getOutputSizeBytes()); in testEntropyConsumption()
1594 rng.resetCounters(); in testEntropyConsumption()
1595 cipher.init(Cipher.ENCRYPT_MODE, encryptionKey, params, rng); in testEntropyConsumption()
[all …]
DSignatureTest.java573 CountingSecureRandom rng = new CountingSecureRandom(); in testEntropyConsumption() local
586 rng.resetCounters(); in testEntropyConsumption()
587 signature.initSign(privateKey, rng); in testEntropyConsumption()
588 assertEquals(0, rng.getOutputSizeBytes()); in testEntropyConsumption()
592 rng.resetCounters(); in testEntropyConsumption()
594 assertEquals(0, rng.getOutputSizeBytes()); in testEntropyConsumption()
597 rng.resetCounters(); in testEntropyConsumption()
611 assertEquals(expectedEntropyBytesConsumed, rng.getOutputSizeBytes()); in testEntropyConsumption()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...