Searched defs:random (Results 1 - 25 of 161) sorted by relevance

1234567

/external/webkit/Source/JavaScriptCore/wtf/
H A DOSRandomSource.cpp52 TInt random; local
53 while (length > sizeof(random)) {
54 random = Math::Random();
55 memcpy(buffer, &random, sizeof(random));
56 length -= sizeof(random);
57 buffer += sizeof(random);
60 random = Math::Random();
61 memcpy(buffer, &random, length);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
H A DBCKeyStore.java11 * set the random source for the key store
13 public void setRandom(SecureRandom random); argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
H A DCipherKeyGenerator.java10 protected SecureRandom random; field in class:CipherKeyGenerator
21 this.random = param.getRandom();
34 random.nextBytes(key);
H A DKeyGenerationParameters.java10 private SecureRandom random; field in class:KeyGenerationParameters
17 * @param random the random byte source.
21 SecureRandom random,
24 this.random = random;
29 * return the random source associated with this
32 * @return the generators random source.
36 return random;
20 KeyGenerationParameters( SecureRandom random, int strength) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
H A DECKeyPairGenerator.java20 SecureRandom random; field in class:ECKeyPairGenerator
27 this.random = ecP.getRandom();
43 d = new BigInteger(nBitLength, random);
H A DDHKeyGeneratorHelper.java20 BigInteger calculatePrivate(DHParameters dhParams, SecureRandom random) argument
27 return new BigInteger(limit, random).setBit(limit - 1);
44 return BigIntegers.createRandomInRange(min, max, random);
H A DDHParametersGenerator.java12 private SecureRandom random; field in class:DHParametersGenerator
21 * @param random a source of randomness
26 SecureRandom random)
30 this.random = random;
44 BigInteger[] safePrimes = DHParametersHelper.generateSafePrimes(size, certainty, random);
48 BigInteger g = DHParametersHelper.selectGenerator(p, q, random);
23 init( int size, int certainty, SecureRandom random) argument
H A DDHParametersHelper.java25 static BigInteger[] generateSafePrimes(int size, int certainty, SecureRandom random) argument
40 q = new BigInteger(qLength, 2, random);
64 static BigInteger selectGenerator(BigInteger p, BigInteger q, SecureRandom random) argument
74 // g = BigIntegers.createRandomInRange(TWO, pMinusTwo, random);
84 BigInteger h = BigIntegers.createRandomInRange(TWO, pMinusTwo, random);
H A DDSAKeyPairGenerator.java46 private static BigInteger generatePrivateKey(BigInteger q, SecureRandom random) argument
48 // TODO Prefer this method? (change test cases that used fixed random)
50 // BigInteger c = new BigInteger(q.bitLength() + 64, random);
54 return BigIntegers.createRandomInRange(ONE, q.subtract(ONE), random);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DDHKeyGenerationParameters.java13 SecureRandom random,
16 super(random, getStrength(params));
12 DHKeyGenerationParameters( SecureRandom random, DHParameters params) argument
H A DDSAKeyGenerationParameters.java13 SecureRandom random,
16 super(random, params.getP().bitLength() - 1);
12 DSAKeyGenerationParameters( SecureRandom random, DSAParameters params) argument
H A DECKeyGenerationParameters.java14 SecureRandom random)
16 super(random, domainParams.getN().bitLength());
12 ECKeyGenerationParameters( ECDomainParameters domainParams, SecureRandom random) argument
H A DParametersWithRandom.java10 private SecureRandom random; field in class:ParametersWithRandom
15 SecureRandom random)
17 this.random = random;
29 return random;
13 ParametersWithRandom( CipherParameters parameters, SecureRandom random) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
H A DBaseAlgorithmParameterGenerator.java9 protected SecureRandom random; field in class:BaseAlgorithmParameterGenerator
14 SecureRandom random)
17 this.random = random;
12 engineInit( int strength, SecureRandom random) argument
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
H A DRandomPhrase.java45 /** Generate a random phrase given a grammar.
52 * The seed acts like a unique identifier so you can get the same random
64 protected static Random random; field in class:RandomPhrase
66 /** an experimental method to generate random phrases for a given
117 int randomAlt = random.nextInt(n) + 1;
128 // pick random element of set
130 int randomIndex = random.nextInt(typeSet.size());
139 /** Used to generate random strings */
147 long seed = System.currentTimeMillis(); // use random seed unless spec.
153 random
[all...]
/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
H A DMyKeyGeneratorSpi.java45 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
53 protected void engineInit(int keysize, SecureRandom random) { argument
60 protected void engineInit(SecureRandom random) { argument
61 throw new IllegalArgumentException("Invalid random");
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DMyAlgorithmParameterGeneratorSpi.java38 protected void engineInit(int keysize, SecureRandom random) { argument
45 SecureRandom random) {
46 if (random == null) {
47 throw new IllegalArgumentException("random is null");
44 engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
H A DMyKeyPairGenerator2.java55 public void initialize(int keysize, SecureRandom random) { argument
60 secureRandom = random;
H A DMyKeyPairGeneratorSpi.java38 public void initialize(int keysize, SecureRandom random) { argument
43 if (random == null) {
44 throw new IllegalArgumentException("Invalid random");
52 public void initialize(AlgorithmParameterSpec params, SecureRandom random) argument
54 if (random == null) {
56 "Not supported for null random");
/external/arduino/hardware/arduino/cores/arduino/
H A DWMath.cpp37 long random(long howbig) function
42 return random() % howbig;
45 long random(long howsmall, long howbig) function
51 return random(diff) + howsmall;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
H A DBlockCipherPadding.java15 * @param random the source of randomness for the padding, if required.
17 public void init(SecureRandom random) argument
H A DISO10126d2Padding.java13 SecureRandom random; field in class:ISO10126d2Padding
18 * @param random a SecureRandom if available.
20 public void init(SecureRandom random) argument
23 if (random != null)
25 this.random = random;
29 this.random = new SecureRandom();
55 in[inOff] = (byte)random.nextInt();
H A DISO7816d4Padding.java17 * @param random - a SecureRandom if available.
19 public void init(SecureRandom random) argument
H A DPKCS7Padding.java16 * @param random - a SecureRandom if available.
18 public void init(SecureRandom random) argument
H A DTBCPadding.java20 * @param random - a SecureRandom if available.
22 public void init(SecureRandom random) argument

Completed in 425 milliseconds

1234567