Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.rainbow

pack-priv Class RainbowDRBG

extends SecureRandom
Class Inheritance
Imports
java.security.SecureRandom, org.bouncycastle.crypto.Digest, org.bouncycastle.crypto.engines.AESEngine, org.bouncycastle.crypto.params.KeyParameter, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private Digest
private byte[]
private byte[]
private byte[]
v

Constructor Summary

AccessConstructor and Description
public
RainbowDRBG(byte[] seed, Digest hashAlgo)

Method Summary

Modifier and TypeMethod and Description
private void
AES256_CTR_DRBG_Update(byte[] entropy_input, byte[] key, byte[] v)

private void
AES256_ECB(byte[] key, byte[] ctr, byte[] buffer, int startPosition)

private void
init(int strength)

public void
nextBytes(byte[]
the array to be filled in with random bytes.
x
)

Overrides java.security.SecureRandom.nextBytes.

Overrides default java.util.random.RandomGenerator.nextBytes.

Generates a user-specified number of random bytes.
private void
randombytes_init(byte[] entropyInput, int strength)

Inherited from java.security.SecureRandom:
generateSeedgetAlgorithmgetInstancegetInstancegetInstancegetInstancegetInstancegetInstancegetInstanceStronggetParametersgetProvidergetSeednextnextBytesreseedreseedsetSeedsetSeedtoString

Field Detail

hashAlgoback to summary
private Digest hashAlgo
keyback to summary
private byte[] key
seedback to summary
private byte[] seed

Hides java.util.Random.seed.

vback to summary
private byte[] v

Constructor Detail

RainbowDRBGback to summary
public RainbowDRBG(byte[] seed, Digest hashAlgo)

Method Detail

AES256_CTR_DRBG_Updateback to summary
private void AES256_CTR_DRBG_Update(byte[] entropy_input, byte[] key, byte[] v)
AES256_ECBback to summary
private void AES256_ECB(byte[] key, byte[] ctr, byte[] buffer, int startPosition)
initback to summary
private void init(int strength)
nextBytesback to summary
public void nextBytes(byte[] x)

Overrides java.security.SecureRandom.nextBytes.

Overrides default java.util.random.RandomGenerator.nextBytes.

Doc from java.security.SecureRandom.nextBytes.

Generates a user-specified number of random bytes.

Parameters
x:byte[]

the array to be filled in with random bytes.

Annotations
@Override
randombytes_initback to summary
private void randombytes_init(byte[] entropyInput, int strength)