org.mozilla.jss.crypto
Interface JSSSecureRandom
- All Known Implementing Classes:
- PK11SecureRandom
- public interface JSSSecureRandom
An interface for secure random numbers. This should be replaced with
java.security.SecureRandom when we move to JDK 1.2. In JDK 1.1,
SecureRandom is implemented by a Sun class. In JDK 1.2, it uses a
provider architecture.
Method Summary |
void |
nextBytes(byte[] 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 . |
setSeed
public void setSeed(byte[] seed)
- Seed the RNG with the given seed bytes.
setSeed
public void setSeed(long seed)
- Seed the RNG with the eight bytes contained in
seed
.
nextBytes
public void nextBytes(byte[] bytes)
- Retrieves random bytes and stores them in the given array.