Home
last modified time | relevance | path

Searched refs:secureRandom (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandomTest.java41 DeterministicSecureRandom secureRandom = new DeterministicSecureRandom(); in testDeterministicSecureRandomNonRepeating() local
45 secureRandom.generateSeed(BYTE_ARRAY_LEN), in testDeterministicSecureRandomNonRepeating()
46 secureRandom.generateSeed(BYTE_ARRAY_LEN))); in testDeterministicSecureRandomNonRepeating()
47 assertNotEquals(secureRandom.nextLong(), secureRandom.nextLong()); in testDeterministicSecureRandomNonRepeating()
51 secureRandom.nextBytes(randomBytesOne); in testDeterministicSecureRandomNonRepeating()
52 secureRandom.nextBytes(randomBytesTwo); in testDeterministicSecureRandomNonRepeating()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DUwbAddress.java97 private static byte[] generateRandomByteArray(int len, SecureRandom secureRandom) { in generateRandomByteArray() argument
99 secureRandom.nextBytes(bytes); in generateRandomByteArray()
105 SecureRandom secureRandom = new SecureRandom(); in getRandomizedShortAddress() local
106 return fromBytes(generateRandomByteArray(SHORT_ADDRESS_LENGTH, secureRandom)); in getRandomizedShortAddress()
111 SecureRandom secureRandom = new SecureRandom(); in getRandomizedExtendedAddress() local
112 return fromBytes(generateRandomByteArray(EXTENDED_ADDRESS_LENGTH, secureRandom)); in getRandomizedExtendedAddress()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/observations/
DPrivateIndexCalculations.java61 SecureRandom secureRandom) { in doubleToIndex() argument
67 return ((int) lowerIndex) + indexOffset(distanceToIndex, secureRandom); in doubleToIndex()
87 SecureRandom secureRandom) { in longToIndex() argument
89 (double) value, (double) minValue, (double) maxValue, numIndexPoints, secureRandom); in longToIndex()
105 static int indexOffset(double distance, SecureRandom secureRandom) { in indexOffset() argument
106 if (secureRandom.nextDouble() > distance) { in indexOffset()
DRandomId.java27 static ByteString generate(SecureRandom secureRandom) { in generate() argument
29 secureRandom.nextBytes(randomId); in generate()
DIntegerEncoder.java41 IntegerEncoder(@NonNull SecureRandom secureRandom) { in IntegerEncoder() argument
42 this.mSecureRandom = requireNonNull(secureRandom); in IntegerEncoder()
DPrivateIntegerEncoder.java44 @NonNull SecureRandom secureRandom, in PrivateIntegerEncoder()
47 this.mSecureRandom = requireNonNull(secureRandom); in PrivateIntegerEncoder()
DPrivacyGenerator.java34 public PrivacyGenerator(SecureRandom secureRandom) { in PrivacyGenerator() argument
35 this.mSecureRandom = secureRandom; in PrivacyGenerator()
DStringHistogramEncoder.java51 @NonNull SecureRandom secureRandom) { in StringHistogramEncoder() argument
56 this.mSecureRandom = requireNonNull(secureRandom); in StringHistogramEncoder()
DNonPrivateObservationGenerator.java61 @NonNull SecureRandom secureRandom, in NonPrivateObservationGenerator()
67 this.mSecureRandom = requireNonNull(secureRandom); in NonPrivateObservationGenerator()
DObservationGeneratorFactory.java49 @NonNull SecureRandom secureRandom) { in ObservationGeneratorFactory() argument
54 mSecureRandom = requireNonNull(secureRandom); in ObservationGeneratorFactory()
DPrivateObservationGenerator.java74 @NonNull SecureRandom secureRandom, in PrivateObservationGenerator() argument
82 this.mSecureRandom = requireNonNull(secureRandom); in PrivateObservationGenerator()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DTlsSessionFactory.java37 public TlsSession newInstance(X509Certificate serverCaCert, SecureRandom secureRandom) in newInstance() argument
39 return new TlsSession(serverCaCert, secureRandom); in newInstance()
DTlsSession.java116 TlsSession(X509Certificate serverCaCert, SecureRandom secureRandom) in TlsSession() argument
118 mSecureRandom = secureRandom; in TlsSession()
121 mSslContext.init(null, mTrustManagers, secureRandom); in TlsSession()
135 SecureRandom secureRandom) { in TlsSession() argument
138 mSecureRandom = secureRandom; in TlsSession()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DObservationGeneratorFactoryTest.java65 SecureRandom secureRandom = new FakeSecureRandom(); in setup() local
71 new PrivacyGenerator(secureRandom), in setup()
72 secureRandom); in setup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionServerPayloadFormatterExcessiveMaxSizeTest.java47 SecureRandom secureRandom = new SecureRandom(); in getRandomByteArray() local
49 secureRandom.nextBytes(result); in getRandomByteArray()
DAuctionServerPayloadFormatterV0Test.java58 SecureRandom secureRandom = new SecureRandom(); in getRandomByteArray() local
60 secureRandom.nextBytes(result); in getRandomByteArray()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimMethodStateMachine.java99 SecureRandom secureRandom) { in EapSimMethodStateMachine() argument
104 secureRandom, in EapSimMethodStateMachine() local
113 SecureRandom secureRandom, in EapSimMethodStateMachine() argument
124 mSecureRandom = secureRandom; in EapSimMethodStateMachine()
DEapMsChapV2MethodStateMachine.java197 EapMsChapV2Config eapMsChapV2Config, SecureRandom secureRandom) { in EapMsChapV2MethodStateMachine() argument
198 this(eapMsChapV2Config, secureRandom, new EapMsChapV2TypeDataDecoder()); in EapMsChapV2MethodStateMachine()
204 SecureRandom secureRandom, in EapMsChapV2MethodStateMachine() argument
207 this.mSecureRandom = secureRandom; in EapMsChapV2MethodStateMachine()
DEapTtlsMethodStateMachine.java103 SecureRandom secureRandom) { in EapTtlsMethodStateMachine() argument
107 secureRandom, in EapTtlsMethodStateMachine()
117 SecureRandom secureRandom, in EapTtlsMethodStateMachine() argument
124 mSecureRandom = secureRandom; in EapTtlsMethodStateMachine()
DEapAkaMethodStateMachine.java131 SecureRandom secureRandom) { in EapAkaMethodStateMachine() argument
138 secureRandom); in EapAkaMethodStateMachine() local
148 SecureRandom secureRandom) { in EapAkaMethodStateMachine() argument
156 mSecureRandom = secureRandom; in EapAkaMethodStateMachine()
DEapStateMachine.java85 @NonNull SecureRandom secureRandom) { in EapStateMachine() argument
88 this.mSecureRandom = secureRandom; in EapStateMachine()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/
DCsmlUtil.java281 SecureRandom secureRandom = new SecureRandom(); in generate256BitRandomKeyInfo() local
283 secureRandom.nextBytes(keyBits256); in generate256BitRandomKeyInfo()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/impl/
DCobaltPeriodicJobImpl.java104 @NonNull SecureRandom secureRandom, in CobaltPeriodicJobImpl() argument
128 Objects.requireNonNull(secureRandom)); in CobaltPeriodicJobImpl()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DAdSelectionManagerTest.java322 SecureRandom secureRandom = new SecureRandom(); in getRandomByteArray() local
324 secureRandom.nextBytes(result); in getRandomByteArray()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java865 SecureRandom secureRandom) {
895 .setPskc(newRandomBytes(secureRandom, LENGTH_PSKC))
896 .setNetworkKey(newRandomBytes(secureRandom, LENGTH_NETWORK_KEY))

12