org.mozilla.jss.pkcs11
Class PK11SecureRandom
java.lang.Object
org.mozilla.jss.pkcs11.PK11SecureRandom
- JSSSecureRandom
public final class PK11SecureRandom
extends java.lang.Object
A random number generator for PKCS #11.
void | nextBytes(bytes[] ) - Retrieves random bytes and stores them in the given array.
|
void | setSeed(byte[] seed) - Seed the RNG with the given seed bytes.
|
void | setSeed(long seed) - Seed the RNG with the eight bytes contained in
seed .
|
PK11SecureRandom
public PK11SecureRandom()
nextBytes
public void nextBytes(bytes[] )
Retrieves random bytes and stores them in the given array.
- nextBytes in interface JSSSecureRandom
setSeed
public void setSeed(byte[] seed)
Seed the RNG with the given seed bytes.
- setSeed in interface JSSSecureRandom
setSeed
public void setSeed(long seed)
Seed the RNG with the eight bytes contained in seed
.
- setSeed in interface JSSSecureRandom