Home
last modified time | relevance | path

Searched defs:random (Results 1 – 25 of 88) sorted by relevance

1234

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyKeyGeneratorSpi.java46 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit()
54 protected void engineInit(int keysize, SecureRandom random) { in engineInit()
61 protected void engineInit(SecureRandom random) { in engineInit()
DMyKeyAgreementSpi.java75 protected void engineInit(Key key, SecureRandom random) in engineInit()
82 SecureRandom random) throws InvalidKeyException, in engineInit()
DMyCipher.java83 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
89 AlgorithmParameterSpec params, SecureRandom random) in engineInit()
95 SecureRandom random) throws InvalidKeyException, in engineInit()
/libcore/ojluni/src/main/java/javax/crypto/
DKeyGeneratorSpi.java51 protected abstract void engineInit(SecureRandom random); in engineInit()
64 SecureRandom random) in engineInit()
78 protected abstract void engineInit(int keysize, SecureRandom random); in engineInit()
DKeyAgreementSpi.java85 protected abstract void engineInit(Key key, SecureRandom random) in engineInit()
105 SecureRandom random) in engineInit()
DKeyAgreement.java377 AlgorithmParameterSpec params, SecureRandom random) in implInit()
387 AlgorithmParameterSpec params, SecureRandom random) in chooseProvider()
497 public final void init(Key key, SecureRandom random) in init()
571 SecureRandom random) in init()
DNullCipherSpi.java69 protected void engineInit(int mode, Key key, SecureRandom random) {} in engineInit()
73 SecureRandom random) {} in engineInit()
77 SecureRandom random) {} in engineInit()
/libcore/luni/src/test/java/libcore/javax/crypto/
DMockCipherSpi.java104 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
111SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
117SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
124 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
131SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
137SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
144 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
151SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
157SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
164 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
[all …]
DMockKeyAgreementSpi.java82 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
87 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyGeneratorSpiTest.java48 protected void engineInit(SecureRandom random) { in engineInit()
53 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit()
59 protected void engineInit(int keysize, SecureRandom random) { in engineInit()
DKeyAgreementSpiTest.java71 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
76 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
DKeyAgreementTest.java351 SecureRandom random = new SecureRandom(); in testDoPhase() local
397 SecureRandom random = null; in testInit01() local
450 SecureRandom random = null; in testInit02() local
493 SecureRandom random = new SecureRandom(); in testInit03() local
542 SecureRandom random = new SecureRandom(); in testInit04() local
/libcore/ojluni/src/main/java/java/security/
DKeyPairGeneratorSpi.java68 public abstract void initialize(int keysize, SecureRandom random); in initialize()
93 SecureRandom random) in initialize()
DAlgorithmParameterGeneratorSpi.java66 protected abstract void engineInit(int size, SecureRandom random); in engineInit()
79 SecureRandom random) in engineInit()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyAlgorithmParameterGeneratorSpi.java39 public void engineInit(int keysize, SecureRandom random) { in engineInit()
46 SecureRandom random) { in engineInit()
DMyKeyPairGeneratorSpi.java39 public void initialize(int keysize, SecureRandom random) { in initialize()
53 public void initialize(AlgorithmParameterSpec params, SecureRandom random) in initialize()
/libcore/ojluni/src/main/java/java/security/interfaces/
DDSAKeyPairGenerator.java91 public void initialize(DSAParams params, SecureRandom random) in initialize()
119 public void initialize(int modlen, boolean genParams, SecureRandom random) in initialize()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java113 SecureRandom random = new SecureRandom(); // We don't use in test_generatePrivateLjava_security_spec_KeySpec() local
115 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_generatePrivateLjava_security_spec_KeySpec() local
144 SecureRandom random = new SecureRandom(); in test_generatePublicLjava_security_spec_KeySpec() local
145 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_generatePublicLjava_security_spec_KeySpec() local
236 SecureRandom random = new SecureRandom(); in test_getKeySpecLjava_security_KeyLjava_lang_Class() local
237 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_getKeySpecLjava_security_KeyLjava_lang_Class() local
293 SecureRandom random = new SecureRandom(); in test_translateKeyLjava_security_Key() local
294 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_translateKeyLjava_security_Key() local
DKeyPairGenerator1Test.java352 SecureRandom random = new SecureRandom(); in testKeyPairGenerator11() local
387 SecureRandom random = new SecureRandom(); in testKeyPairGenerator12() local
463 SecureRandom random = new SecureRandom(); in testKeyPairGenerator13() local
/libcore/ojluni/src/test/java/util/Arrays/
DSorting.java168 private void testStability(int length, TestRandom random) { in testStability()
310 private void testSubArray(int length, TestRandom random) { in testSubArray()
331 private void testRange(int length, TestRandom random) { in testRange()
382 private Pair[] build(int length, Random random) { in build()
395 private void testWithInsertionSort(int length, TestRandom random) { in testWithInsertionSort()
401 builder.build((int[]) gold[0], m, random); in testWithInsertionSort() local
416 private void testMergingSort(int length, TestRandom random) { in testMergingSort()
438 private void testWithCheckSum(int length, TestRandom random) { in testWithCheckSum()
441 builder.build((int[]) gold[0], m, random); in testWithCheckSum() local
455 private void testWithScrambling(int length, TestRandom random) { in testWithScrambling()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/
DDSAKeyPairGeneratorImpl.java46 public void initialize(DSAParams params, SecureRandom random) in initialize()
59 public void initialize(int modlen, boolean genParams, SecureRandom random) in initialize()
/libcore/luni/src/test/java/tests/security/interfaces/
DDSAKeyPairGeneratorTest.java49 SecureRandom random = null; in test_DSAKeyPairGenerator01() local
88 SecureRandom random = null; in test_DSAKeyPairGenerator02() local
/libcore/ojluni/annotations/hiddenapi/java/security/
DKeyPairGenerator.java76 public void initialize(int keysize, java.security.SecureRandom random) { in initialize()
86 java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) in initialize()
132 public void initialize(int keysize, java.security.SecureRandom random) { in initialize()
137 java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) in initialize()
/libcore/luni/src/test/java/libcore/java/util/
DSplittableRandomTest.java44 SplittableRandom random = new SplittableRandom(42); in split_throwsNPE_whenSourceIsNull() local
53 SplittableRandom random = new SplittableRandom(42); in split_throwsIAE_whenSizeIsNonPositive() local
61 var random = new SplittableRandom(); in splits_streamOfSizeZero_areEmpty() local
/libcore/ojluni/src/test/java/util/Random/
DRandomStreamTest.java67 public void testRandomIntStream(final Random random, final int count) { in testRandomIntStream()
74 public void testRandomLongStream(final Random random, final int count) { in testRandomLongStream()
81 public void testRandomDoubleStream(final Random random, final int count) { in testRandomDoubleStream()

1234