HomeSort by relevance Sort by last modified time
    Searched refs:random (Results 1 - 25 of 306) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/
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;
CipherKeyGenerator.java 10 protected SecureRandom random; field in class:CipherKeyGenerator
21 this.random = param.getRandom();
34 random.nextBytes(key);
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/
ParametersWithRandom.java 10 private SecureRandom random; field in class:ParametersWithRandom
15 SecureRandom random)
17 this.random = random;
29 return random;
DSAKeyGenerationParameters.java 13 SecureRandom random,
16 super(random, params.getP().bitLength() - 1);
  /libcore/luni/src/main/java/java/security/
AlgorithmParameterGeneratorSpi.java 43 * @param random
46 protected abstract void engineInit(int size, SecureRandom random);
54 * @param random
60 SecureRandom random) throws InvalidAlgorithmParameterException;
KeyPairGeneratorSpi.java 49 * @param random
52 public abstract void initialize(int keysize, SecureRandom random);
60 * @param random
65 public void initialize(AlgorithmParameterSpec params, SecureRandom random)
  /libcore/luni/src/main/java/javax/crypto/
KeyGeneratorSpi.java 51 * @param random
52 * the randomness source for any random bytes.
58 SecureRandom random) throws InvalidAlgorithmParameterException;
66 * @param random
67 * the randomness source for any random bytes.
69 protected abstract void engineInit(int keysize, SecureRandom random);
75 * @param random
76 * the randomness source for any random bytes.
78 protected abstract void engineInit(SecureRandom random);
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/paddings/
ISO10126d2Padding.java 13 SecureRandom random; field in class:ISO10126d2Padding
18 * @param random a SecureRandom if available.
20 public void init(SecureRandom random)
23 if (random != null)
25 this.random = random;
29 this.random = new SecureRandom();
55 in[inOff] = (byte)random.nextInt();
X923Padding.java 9 * passed in random padding is assumed, otherwise padding with zeros is used.
14 SecureRandom random = null; field in class:X923Padding
19 * @param random a SecureRandom if one is available.
21 public void init(SecureRandom random)
24 this.random = random;
49 if (random == null)
55 in[inOff] = (byte)random.nextInt();
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/
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);
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyAlgorithmParameterGeneratorSpi.java 39 public void engineInit(int keysize, SecureRandom random) {
46 SecureRandom random) {
47 if (random == null) {
48 throw new IllegalArgumentException("random is null");
MyKeyPairGeneratorSpi.java 39 public void initialize(int keysize, SecureRandom random) {
44 if (random == null) {
45 throw new IllegalArgumentException("Invalid random");
53 public void initialize(AlgorithmParameterSpec params, SecureRandom random)
55 if (random == null) {
57 "Not supported for null random");
  /bionic/libc/kernel/common/linux/
etherdevice.h 17 #include <linux/random.h>
  /development/ndk/platforms/android-3/include/linux/
etherdevice.h 17 #include <linux/random.h>
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/interfaces/
BCKeyStore.java 11 * set the random source for the key store
13 public void setRandom(SecureRandom random);
  /prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/
etherdevice.h 17 #include <linux/random.h>
  /prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/
etherdevice.h 17 #include <linux/random.h>
  /prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/
etherdevice.h 17 #include <linux/random.h>
  /prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/
etherdevice.h 17 #include <linux/random.h>
  /prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/linux/
etherdevice.h 17 #include <linux/random.h>
  /prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/linux/
etherdevice.h 17 #include <linux/random.h>
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
JDKAlgorithmParameterGenerator.java 35 protected SecureRandom random; field in class:JDKAlgorithmParameterGenerator
40 SecureRandom random)
43 this.random = random;
53 SecureRandom random)
64 this.random = random;
71 if (random != null)
73 pGen.init(strength, 20, random);
103 SecureRandom random)
    [all...]
  /libcore/luni/src/main/java/java/security/interfaces/
DSAKeyPairGenerator.java 34 * @param random
40 public void initialize(DSAParams params, SecureRandom random)
58 * @param random
65 public void initialize(int modlen, boolean genParams, SecureRandom random)
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
ServerHello.java 37 * Random bytes
39 byte[] random = new byte[32]; field in class:ServerHello
67 sr.nextBytes(random);
68 random[0] = (byte) ((gmt_unix_time & 0xFF000000) >>> 24);
69 random[1] = (byte) ((gmt_unix_time & 0xFF0000) >>> 16);
70 random[2] = (byte) ((gmt_unix_time & 0xFF00) >>> 8);
71 random[3] = (byte) (gmt_unix_time & 0xFF);
89 in.read(random, 0, 32);
111 out.write(random);
120 * Returns server random
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
MyKeyGeneratorSpi.java 46 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random)
54 protected void engineInit(int keysize, SecureRandom random) {
61 protected void engineInit(SecureRandom random) {
62 throw new IllegalArgumentException("Invalid random");

Completed in 822 milliseconds

1 2 3 4 5 6 7 8 91011>>