Home
last modified time | relevance | path

Searched refs:nextBytes (Results 1 – 23 of 23) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandomTest.java51 secureRandom.nextBytes(randomBytesOne); in testDeterministicSecureRandomNonRepeating()
52 secureRandom.nextBytes(randomBytesTwo); in testDeterministicSecureRandomNonRepeating()
66 srOne.nextBytes(randomBytesOne); in testTwoDeterministicSecureRandomsAreDeterministic()
67 srTwo.nextBytes(randomBytesTwo); in testTwoDeterministicSecureRandomsAreDeterministic()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/
DEapMsChapV2Test.java148 }).when(mMockSecureRandom).nextBytes(eq(new byte[PEER_CHALLENGE.length])); in verifyEapMsChapV2Challenge()
154 verify(mMockSecureRandom).nextBytes(any(byte[].class)); in verifyEapMsChapV2Challenge()
DEapSimTest.java250 }).when(mMockSecureRandom).nextBytes(eq(new byte[NONCE.length])); in verifyEapSimStart()
260 verify(mMockSecureRandom).nextBytes(any(byte[].class)); in verifyEapSimStart()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DBlockingHttpClientTests.java114 rand.nextBytes(response); in testSuccess_emptyRequest()
130 rand.nextBytes(response); in testSuccess()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapMsChapV2ChallengeStateTest.java80 }).when(mMockSecureRandom).nextBytes(eq(new byte[MSCHAP_V2_PEER_CHALLENGE.length])); in testProcessChallenge()
86 verify(mMockSecureRandom).nextBytes(any(byte[].class)); in testProcessChallenge()
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java295 sRandom.nextBytes(buffer); in run()
374 sRandom.nextBytes(buffer); in run()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNoncePayload.java76 random.nextBytes(nonceData); in IkeNoncePayload()
DIkeEncryptedPayloadBody.java352 new SecureRandom().nextBytes(padding); in calculatePadding()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandom.java99 public void nextBytes(byte[] bytes) { in nextBytes() method in DeterministicSecureRandom
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeCipher.java135 new SecureRandom().nextBytes(iv); in generateIv()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java2010 new Random().nextBytes(data);
2053 new Random().nextBytes(data);
2062 new Random().nextBytes(data);
2071 new Random().nextBytes(data);
2080 new Random().nextBytes(data);
2089 new Random().nextBytes(data);
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/util/
DByteUtils.java133 ThreadLocalRandom.current().nextBytes(array); in randomBytes()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DBlePacketFactoryTest.java167 new Random().nextBytes(payload); in makePayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeCombinedModeCipherTest.java125 new Random().nextBytes(encryptionKey); in testDecrypWithWrongKey()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java77 rng.nextBytes(random); in generateRandomName()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java131 SecureRandom.getInstanceStrong().nextBytes(data); in writeBytesToFile()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DDigestMd5Utils.java89 generator.nextBytes(rawBytes); in createCnonce()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java184 .nextBytes(expectedData); in testLargeByteArrayProperty()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java121 new Random().nextBytes(random); in createCollisionRecord()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimMethodStateMachine.java171 mSecureRandom.nextBytes(nonce); in process()
DEapMsChapV2MethodStateMachine.java264 mSecureRandom.nextBytes(peerChallenge); in process()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java658 r.nextBytes(packet); in testRandomPackets()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java2236 r.nextBytes(packet); in testRaParsing()
2257 r.nextBytes(packet); in testRaProcessing()