mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Emphasize that we ignore the SecureRandom parameter.
This commit is contained in:
parent
8bcc9b3809
commit
2408313344
@ -87,9 +87,11 @@ public class KeyPairGenerator {
|
||||
|
||||
/**
|
||||
* Initializes the generator with algorithm-specific parameters.
|
||||
* The <tt>SecureRandom</tt> parameters is ignored.
|
||||
*
|
||||
* @param params Algorithm-specific parameters for the key pair generation.
|
||||
* @param random This parameter is ignored.
|
||||
* @param random <b>This parameter is ignored.</b> NSS does not accept
|
||||
* an external source of random numbers.
|
||||
* @exception InvalidAlgorithmParameterException If the parameters are
|
||||
* inappropriate for the type of key pair that is being generated,
|
||||
* or they are not supported by this generator.
|
||||
@ -120,10 +122,12 @@ public class KeyPairGenerator {
|
||||
|
||||
/**
|
||||
* Initializes the generator with the strength of the keys.
|
||||
* The <tt>SecureRandom</tt> parameter is ignored.
|
||||
*
|
||||
* @param strength The strength of the keys that will be generated.
|
||||
* Usually this is the length of the key in bits.
|
||||
* @param random This parameter is ignored.
|
||||
* @param random <b>This parameter is ignored.</b> NSS does not accept
|
||||
* an exterrnal source of random numbers.
|
||||
*/
|
||||
public void initialize(int strength, SecureRandom random) {
|
||||
engine.initialize(strength, random);
|
||||
|
Loading…
Reference in New Issue
Block a user