|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.SecureRandomSpi akka.remote.security.provider.AES256CounterSecureRNG
public class AES256CounterSecureRNG
INTERNAL API This class is a wrapper around the 256-bit AESCounterRNG algorithm provided by http://maths.uncommons.org/ The only method used by netty ssl is engineNextBytes(bytes) This RNG is good to use to prevent startup delay when you don't have Internet access to random.org
Constructor Summary | |
---|---|
AES256CounterSecureRNG()
|
Method Summary | |
---|---|
protected byte[] |
engineGenerateSeed(int numBytes)
Unused method Returns the given number of seed bytes. |
protected void |
engineNextBytes(byte[] bytes)
Generates a user-specified number of random bytes. |
protected void |
engineSetSeed(byte[] seed)
This is managed internally by AESCounterRNG |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AES256CounterSecureRNG()
Method Detail |
---|
protected void engineSetSeed(byte[] seed)
engineSetSeed
in class java.security.SecureRandomSpi
seed
- (undocumented)protected void engineNextBytes(byte[] bytes)
engineNextBytes
in class java.security.SecureRandomSpi
bytes
- the array to be filled in with random bytes.protected byte[] engineGenerateSeed(int numBytes)
engineGenerateSeed
in class java.security.SecureRandomSpi
numBytes
- the number of seed bytes to generate.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |