public class NonceTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ISAACRandomGenerator |
aliceCSPRNG |
private SDFGenerator |
aliceGeneratorSDF |
private Nonce |
aliceNonce |
private SDFParameters |
aliceParamSDF |
private byte[] |
aliceSeed |
private ISAACRandomGenerator |
bobCSPRNG |
private SDFGenerator |
bobGeneratorSDF |
private Nonce |
bobNonce |
private SDFParameters |
bobParamSDF |
private byte[] |
bobSeed |
private byte[] |
expLastNonce |
Constructor and Description |
---|
NonceTest() |
Modifier and Type | Method and Description |
---|---|
void |
restoreNonceState()
Test that the nonce generator can be restored to a previous state and can correctly
generated the sequence avoiding the risk of repeating IVs.
|
void |
sameNonceSequence()
Test that alice and bob are able to generate the same sequence of nonces given
that they both have the same seeds.
|
void |
sameSeeds()
Basic test which verifies that alice and bob are able to generate
the same seeds given that they have the same S1 & S2 parameters
for the SDF
|
void |
setUp() |
private SDFParameters aliceParamSDF
private SDFParameters bobParamSDF
private SDFGenerator aliceGeneratorSDF
private SDFGenerator bobGeneratorSDF
private byte[] aliceSeed
private byte[] bobSeed
private ISAACRandomGenerator aliceCSPRNG
private ISAACRandomGenerator bobCSPRNG
private Nonce aliceNonce
private Nonce bobNonce
private byte[] expLastNonce
public void setUp() throws java.lang.Exception
java.lang.Exception
public void sameSeeds()
public void sameNonceSequence()
public void restoreNonceState()