Package org.mozilla.jss.crypto
Interface JSSSecureRandom
-
- All Known Implementing Classes:
PK11SecureRandom
public interface JSSSecureRandomAn interface for secure random numbers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnextBytes(byte[] bytes)Retrieves random bytes and stores them in the given array.voidsetSeed(byte[] seed)Seed the RNG with the given seed bytes.voidsetSeed(long seed)Seed the RNG with the eight bytes contained inseed.
-
-
-
Method Detail
-
setSeed
void setSeed(byte[] seed)
Seed the RNG with the given seed bytes.- Parameters:
seed- Seed.
-
setSeed
void setSeed(long seed)
Seed the RNG with the eight bytes contained inseed.- Parameters:
seed- Seed.
-
nextBytes
void nextBytes(byte[] bytes)
Retrieves random bytes and stores them in the given array.- Parameters:
bytes- Array to store random bytes.
-
-