/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
D | JDKAlgorithmParameterGenerator.java | 36 protected SecureRandom random; field in JDKAlgorithmParameterGenerator 41 SecureRandom random) in engineInit() argument 44 this.random = random; in engineInit() 54 SecureRandom random) in engineInit() argument 65 this.random = random; in engineInit() 72 if (random != null) in engineGenerateParameters() 74 pGen.init(strength, 20, random); in engineGenerateParameters() 104 SecureRandom random) in engineInit() argument 112 this.random = random; in engineInit() 117 SecureRandom random) in engineInit() argument [all …]
|
D | JDKKeyPairGenerator.java | 64 public abstract void initialize(int strength, SecureRandom random); in initialize() argument 89 SecureRandom random) in initialize() argument 92 random, strength, defaultTests); in initialize() 99 SecureRandom random) in initialize() argument 110 random, rsaParams.getKeysize(), defaultTests); in initialize() 135 SecureRandom random = new SecureRandom(); field in JDKKeyPairGenerator.DH 145 SecureRandom random) in initialize() argument 148 this.random = random; in initialize() 153 SecureRandom random) in initialize() argument 162 …param = new DHKeyGenerationParameters(random, new DHParameters(dhParams.getP(), dhParams.getG(), n… in initialize() [all …]
|
D | JCEKeyGenerator.java | 38 SecureRandom random) in engineInit() argument 45 SecureRandom random) in engineInit() argument 47 if (random != null) in engineInit() 49 engine.init(new KeyGenerationParameters(random, defaultKeySize)); in engineInit() 56 SecureRandom random) in engineInit() argument 61 if (random == null) { in engineInit() 62 random = new SecureRandom(); in engineInit() 65 engine.init(new KeyGenerationParameters(random, keySize)); in engineInit()
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | OSRandomSource.cpp | 52 TInt random; in cryptographicallyRandomValuesFromOS() local 53 while (length > sizeof(random)) { in cryptographicallyRandomValuesFromOS() 54 random = Math::Random(); in cryptographicallyRandomValuesFromOS() 55 memcpy(buffer, &random, sizeof(random)); in cryptographicallyRandomValuesFromOS() 56 length -= sizeof(random); in cryptographicallyRandomValuesFromOS() 57 buffer += sizeof(random); in cryptographicallyRandomValuesFromOS() 60 random = Math::Random(); in cryptographicallyRandomValuesFromOS() 61 memcpy(buffer, &random, length); in cryptographicallyRandomValuesFromOS()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/paddings/ |
D | ISO10126d2Padding.java | 13 SecureRandom random; field in ISO10126d2Padding 20 public void init(SecureRandom random) in init() argument 23 if (random != null) in init() 25 this.random = random; in init() 29 this.random = new SecureRandom(); in init() 55 in[inOff] = (byte)random.nextInt(); in addPadding()
|
D | X923Padding.java | 14 SecureRandom random = null; field in X923Padding 21 public void init(SecureRandom random) in init() argument 24 this.random = random; in init() 49 if (random == null) in addPadding() 55 in[inOff] = (byte)random.nextInt(); in addPadding()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/ |
D | DHParametersGenerator.java | 12 private SecureRandom random; field in DHParametersGenerator 26 SecureRandom random) in init() argument 30 this.random = random; in init() 44 BigInteger[] safePrimes = DHParametersHelper.generateSafePrimes(size, certainty, random); in generateParameters() 48 BigInteger g = DHParametersHelper.selectGenerator(p, q, random); in generateParameters()
|
D | DSAParametersGenerator.java | 22 private SecureRandom random; field in DSAParametersGenerator 38 SecureRandom random) in init() argument 40 init(size, getDefaultN(size), certainty, random); in init() 48 SecureRandom random) in init() argument 56 this.random = random; in init() 84 random.nextBytes(seed); in generateParameters_FIPS186_2() 137 BigInteger g = calculateGenerator_FIPS186_2(p, q, random); in generateParameters_FIPS186_2() 191 random.nextBytes(seed); in generateParameters_FIPS186_3() 265 BigInteger g = calculateGenerator_FIPS186_3_Unverifiable(p, q, random); in generateParameters_FIPS186_3()
|
D | DHParametersHelper.java | 25 static BigInteger[] generateSafePrimes(int size, int certainty, SecureRandom random) in generateSafePrimes() argument 40 q = new BigInteger(qLength, 2, random); in generateSafePrimes() 64 static BigInteger selectGenerator(BigInteger p, BigInteger q, SecureRandom random) in selectGenerator() argument 84 BigInteger h = BigIntegers.createRandomInRange(TWO, pMinusTwo, random); in selectGenerator()
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
D | KeyPairGenerator.java | 54 SecureRandom random = new SecureRandom(); field in KeyPairGenerator.EC 89 SecureRandom random) in initialize() argument 93 if (random != null) { in initialize() 95 this.random = random; in initialize() 107 initialize((ECGenParameterSpec)ecParams, random); in initialize() local 122 SecureRandom random) in initialize() argument 126 if (random == null) { in initialize() 127 random = this.random; in initialize() 135 … = new ECKeyGenerationParameters(new ECDomainParameters(p.getCurve(), p.getG(), p.getN()), random); in initialize() 148 …eters(new ECDomainParameters(curve, g, p.getOrder(), BigInteger.valueOf(p.getCofactor())), random); in initialize() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/ |
D | KeyGenerationParameters.java | 10 private SecureRandom random; field in KeyGenerationParameters 21 SecureRandom random, in KeyGenerationParameters() argument 24 this.random = random; in KeyGenerationParameters() 36 return random; in getRandom()
|
D | CipherKeyGenerator.java | 10 protected SecureRandom random; field in CipherKeyGenerator 21 this.random = param.getRandom(); in init() 34 random.nextBytes(key); in generateKey()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | SecureRandom2Test.java | 161 int random = mySecureRandom.getNext(numBits); in test_nextJ() local 162 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ() 165 random = mySecureRandom.getNext(numBits); in test_nextJ() 166 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ() 169 random = mySecureRandom.getNext(numBits); in test_nextJ() 170 assertEquals(32, Integer.bitCount(random)); in test_nextJ() 173 random = mySecureRandom.getNext(numBits); in test_nextJ() 174 assertEquals(0, Integer.bitCount(random)); in test_nextJ()
|
D | KeyPairGenerator1Test.java | 353 SecureRandom random = new SecureRandom(); in testKeyPairGenerator11() local 361 kpg[i].initialize(keys[j], random); in testKeyPairGenerator11() 368 kpg[i].initialize(aps, random); in testKeyPairGenerator11() 388 SecureRandom random = new SecureRandom(); in testKeyPairGenerator12() local 405 mKPG.initialize(keys[i], random); in testKeyPairGenerator12() 417 mKPG.initialize(100, random); in testKeyPairGenerator12() 418 assertEquals("Incorrect random", random, in testKeyPairGenerator12() 423 mKPG.initialize(null, random); in testKeyPairGenerator12() 438 mKPG.initialize(aps, random); in testKeyPairGenerator12() 439 assertEquals("Incorrect random", random, in testKeyPairGenerator12() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/ |
D | ParametersWithRandom.java | 10 private SecureRandom random; field in ParametersWithRandom 15 SecureRandom random) in ParametersWithRandom() argument 17 this.random = random; in ParametersWithRandom() 29 return random; in getRandom()
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator1.java | 61 public void initialize(int keysize, SecureRandom random) { in initialize() argument 65 if (random == null) { in initialize() 69 secureRandom = random; in initialize() 81 public void initialize(AlgorithmParameterSpec param, SecureRandom random) in initialize() argument 83 if (random == null) { in initialize() 90 secureRandom = random; in initialize()
|
D | MyKeyPairGeneratorSpi.java | 38 public void initialize(int keysize, SecureRandom random) { in initialize() argument 43 if (random == null) { in initialize() 52 public void initialize(AlgorithmParameterSpec params, SecureRandom random) in initialize() argument 54 if (random == null) { in initialize()
|
/external/skia/src/animator/ |
D | SkDisplayRandom.cpp | 22 SK_PROPERTY(random), 32 SK_MEMBER_DYNAMIC_PROPERTY(random, Float), 61 case SK_PROPERTY(random): { in getProperty() 62 SkScalar random = fRandom.nextUScalar1(); in getProperty() local 63 … SkScalar relativeT = SkUnitCubicInterp(random, SK_Scalar1 - blend, 0, 0, SK_Scalar1 - blend); in getProperty()
|
/external/clang/utils/VtableTest/ |
D | gen.cc | 73 int i_bases = random() % (N_BASES*2); in gs() 81 if (random() % 4 == 0) in gs() 91 int base = random() % (s-1) + 1; in gs() 101 if (random()%8 == 0) { in gs() 111 base_protection = random()%8; in gs() 138 int n_fields = N_FIELDS == 0 ? 0 : random() % (N_FIELDS*4); in gs() 143 int t = random() % (sizeof(simple_types) / sizeof(simple_types[0])); in gs() 150 int n_funcs = random() % (N_FUNCS*2); in gs() 155 int fn = old_func + random() % FUNCSPACING + 1; in gs() 159 ret_type = random() % s + 1; in gs()
|
/external/bouncycastle/src/main/java/org/bouncycastle/openssl/ |
D | MiscPEMGenerator.java | 52 private SecureRandom random; field in MiscPEMGenerator 64 SecureRandom random, in MiscPEMGenerator() argument 70 this.random = random; in MiscPEMGenerator() 78 SecureRandom random, in MiscPEMGenerator() argument 85 this.random = random; in MiscPEMGenerator() 229 SecureRandom random) in createPemObject() argument 234 return createPemObject(((KeyPair)obj).getPrivate(), algorithm, password, random); in createPemObject() 306 random.nextBytes(iv); in createPemObject() 325 return createPemObject(obj, algorithm, password, random); in generate()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
D | AlgorithmParameterGenerator_ImplTest.java | 84 SecureRandom random = new SecureRandom(); in testAlgorithmParameterGenerator11() local 101 apgs[i].init(keys[j], random); in testAlgorithmParameterGenerator11() 118 apgs[i].init(512, random); in testAlgorithmParameterGenerator11() 120 apgs[i].init(512 + 64 + 64, random); in testAlgorithmParameterGenerator11() 122 apgs[i].init(1024, random); in testAlgorithmParameterGenerator11()
|
/external/bouncycastle/src/main/java/org/bouncycastle/util/ |
D | BigIntegers.java | 48 SecureRandom random) in createRandomInRange() argument 63 return createRandomInRange(ZERO, max.subtract(min), random).add(min); in createRandomInRange() 68 BigInteger x = new BigInteger(max.bitLength(), random); in createRandomInRange() 76 return new BigInteger(max.subtract(min).bitLength() - 1, random).add(min); in createRandomInRange()
|
/external/e2fsprogs/tests/progs/ |
D | random_exercise.c | 53 fd = ((int) random()) % MAXFDS; in get_random_fd() 79 isdir = random() & 1; in create_random_file() 87 size = random() & (DATA_SIZE-1); in create_random_file() 105 size = random() & (DATA_SIZE-1); in truncate_file() 158 (random() & 2)) in main()
|
/external/bouncycastle/src/main/java/org/bouncycastle/x509/ |
D | X509V1CertificateGenerator.java | 206 SecureRandom random) in generateX509Certificate() argument 211 return generateX509Certificate(key, "BC", random); in generateX509Certificate() 242 SecureRandom random) in generateX509Certificate() argument 247 return generate(key, provider, random); in generateX509Certificate() 292 SecureRandom random) in generate() argument 300 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate() 331 SecureRandom random) in generate() argument 339 …ignature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert); in generate()
|
/external/bluetooth/glib/glib/ |
D | grand.c | 421 guint32 random; in g_rand_int_range() local 444 random = (gint32) (double_rand * dist); in g_rand_int_range() 451 random = (gint32) g_rand_double_range (rand, 0, dist); in g_rand_int_range() 456 random = 0; in g_rand_int_range() 473 random = g_rand_int (rand); in g_rand_int_range() 474 while (random > maxvalue); in g_rand_int_range() 476 random %= dist; in g_rand_int_range() 480 random = 0; /* Quiet GCC */ in g_rand_int_range() 484 return begin + random; in g_rand_int_range()
|