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

1234

/dalvik/libcore/security/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
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DKeyGeneratorSpi.java51 * @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); argument
75 * @param random
76 * the randomness source for any random bytes.
78 protected abstract void engineInit(SecureRandom random); argument
57 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
H A DKeyAgreementSpi.java112 * @param random
118 protected abstract void engineInit(Key key, SecureRandom random) argument
129 * @param random
139 SecureRandom random) throws InvalidKeyException,
138 engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument
/dalvik/libcore/security/src/main/java/java/security/
H A DAlgorithmParameterGeneratorSpi.java43 * @param random
46 protected abstract void engineInit(int size, SecureRandom random); argument
54 * @param random
60 SecureRandom random) throws InvalidAlgorithmParameterException;
59 engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
H A DKeyPairGeneratorSpi.java51 * @param random
54 public abstract void initialize(int keysize, SecureRandom random); argument
62 * @param random
67 public void initialize(AlgorithmParameterSpec params, SecureRandom random) argument
/dalvik/libcore/security/src/main/java/java/security/interfaces/
H A DDSAKeyPairGenerator.java34 * @param random
40 public void initialize(DSAParams params, SecureRandom random) argument
58 * @param random
65 public void initialize(int modlen, boolean genParams, SecureRandom random) argument
/dalvik/libcore/security/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
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DDHKeyGenerationParameters.java13 SecureRandom random,
16 super(random, params.getP().bitLength());
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 DParametersWithRandom.java10 private SecureRandom random; field in class:ParametersWithRandom
15 SecureRandom random)
17 this.random = random;
24 this.random = null;
30 if (random == null)
32 random = new SecureRandom();
34 return random;
13 ParametersWithRandom( CipherParameters parameters, SecureRandom random) argument
H A DRSAKeyGenerationParameters.java16 SecureRandom random,
20 super(random, strength);
14 RSAKeyGenerationParameters( BigInteger publicExponent, SecureRandom random, int strength, int certainty) argument
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DKeyGeneratorSpiTest.java55 protected void engineInit(SecureRandom random) { argument
56 super.engineInit(random);
60 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
62 super.engineInit(params, random);
66 protected void engineInit(int keysize, SecureRandom random) { argument
67 super.engineInit(keysize, random);
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyKeyGeneratorSpi.java46 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
54 protected void engineInit(int keysize, SecureRandom random) { argument
61 protected void engineInit(SecureRandom random) { argument
62 throw new IllegalArgumentException("Invalid random");
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/agreement/
H A DDHAgreement.java29 private SecureRandom random; field in class:DHAgreement
40 this.random = rParam.getRandom();
45 this.random = new SecureRandom();
65 dhParams.getP().bitLength() - 1, 0, random);
H A DDHBasicAgreement.java26 private SecureRandom random; field in class:DHBasicAgreement
37 this.random = rParam.getRandom();
42 this.random = new SecureRandom();
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/generators/
H A DDHParametersGenerator.java12 private SecureRandom random; field in class:DHParametersGenerator
22 * @param random a source of randomness
27 SecureRandom random)
31 this.random = random;
50 q = new BigInteger(qLength, certainty, random);
64 g = new BigInteger(qLength, random);
24 init( int size, int certainty, SecureRandom random) argument
H A DDSAParametersGenerator.java17 private SecureRandom random; field in class:DSAParametersGenerator
27 * @param random random byte source.
32 SecureRandom random)
36 this.random = random;
86 random.nextBytes(seed);
160 BigInteger h = new BigInteger(size, random);
29 init( int size, int certainty, SecureRandom random) argument
/dalvik/libcore/security/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
H A DX923Padding.java9 * 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) argument
24 this.random = random;
49 if (random == null)
55 in[inOff] = (byte)random.nextInt();
H A DZeroBytePadding.java16 * @param random - a SecureRandom if available.
18 public void init(SecureRandom random) argument

Completed in 2191 milliseconds

1234