/external/webkit/Source/JavaScriptCore/wtf/ |
H A D | OSRandomSource.cpp | 52 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 D | BCKeyStore.java | 11 * 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 D | CipherKeyGenerator.java | 10 protected SecureRandom random; field in class:CipherKeyGenerator 21 this.random = param.getRandom(); 34 random.nextBytes(key);
|
H A D | KeyGenerationParameters.java | 10 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 D | ECKeyPairGenerator.java | 20 SecureRandom random; field in class:ECKeyPairGenerator 27 this.random = ecP.getRandom(); 43 d = new BigInteger(nBitLength, random);
|
H A D | DHKeyGeneratorHelper.java | 20 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 D | DHParametersGenerator.java | 12 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 D | DHParametersHelper.java | 25 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 D | DSAKeyPairGenerator.java | 46 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 D | DHKeyGenerationParameters.java | 13 SecureRandom random, 16 super(random, getStrength(params)); 12 DHKeyGenerationParameters( SecureRandom random, DHParameters params) argument
|
H A D | DSAKeyGenerationParameters.java | 13 SecureRandom random, 16 super(random, params.getP().bitLength() - 1); 12 DSAKeyGenerationParameters( SecureRandom random, DSAParameters params) argument
|
H A D | ECKeyGenerationParameters.java | 14 SecureRandom random) 16 super(random, domainParams.getN().bitLength()); 12 ECKeyGenerationParameters( ECDomainParameters domainParams, SecureRandom random) argument
|
H A D | ParametersWithRandom.java | 10 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 D | BaseAlgorithmParameterGenerator.java | 9 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 D | RandomPhrase.java | 45 /** 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 D | MyKeyGeneratorSpi.java | 45 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 D | MyAlgorithmParameterGeneratorSpi.java | 38 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 D | MyKeyPairGenerator2.java | 55 public void initialize(int keysize, SecureRandom random) { argument 60 secureRandom = random;
|
H A D | MyKeyPairGeneratorSpi.java | 38 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 D | WMath.cpp | 37 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 D | BlockCipherPadding.java | 15 * @param random the source of randomness for the padding, if required. 17 public void init(SecureRandom random) argument
|
H A D | ISO10126d2Padding.java | 13 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 D | ISO7816d4Padding.java | 17 * @param random - a SecureRandom if available. 19 public void init(SecureRandom random) argument
|
H A D | PKCS7Padding.java | 16 * @param random - a SecureRandom if available. 18 public void init(SecureRandom random) argument
|
H A D | TBCPadding.java | 20 * @param random - a SecureRandom if available. 22 public void init(SecureRandom random) argument
|