public class ECEngineTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ECEngine |
aliceEngine |
private ECKey |
aliceKey |
private ECPrivateKeyParameters |
alicePriKey |
private ECPublicKeyParameters |
alicePubKey |
private ECEngine |
bobEngine |
private ECKey |
bobKey |
private ECPrivateKeyParameters |
bobPriKey |
private ECPublicKeyParameters |
bobPubKey |
private ISAACRandomGenerator |
decCSPRNG |
(package private) CipherParameters |
decNonce |
private ISAACRandomGenerator |
encCSPRNG |
(package private) CipherParameters |
encNonce |
private static java.lang.String |
exp128ByteMsg |
private static java.lang.String |
exp12ByteMsg |
private static java.lang.String |
exp1ByteMsg |
private static java.lang.String |
exp32ByteMsg |
private static java.lang.String |
exp33ByteMsg |
private static java.lang.String |
exp63ByteMsg |
private static java.lang.String |
exp64ByteMsg |
private static java.lang.String |
expASCIICharset |
private java.util.ArrayList<java.lang.String> |
expBlockSizes |
private SDFGenerator |
generator |
private ECKeyParam |
param |
private APrioriInfo |
priorInfo |
private byte[] |
seed |
Constructor and Description |
---|
ECEngineTest() |
Modifier and Type | Method and Description |
---|---|
void |
asciiCharset()
Encyrption/Decryption test that verifies that a message containing the ASCII
character set (keyboard characters only) can be encrypted and decrypted back
into the original message.
|
void |
blockSizes()
Encryption test for a message that fits exactly within a multiple of blocks
(128 bytes) and a message that is 1 byte to large for a block (33 bytes)
|
void |
setUp()
Setup the encryption/decryption test, assume that alice and
bob have already exchanged their keys.
|
void |
uniqueEncryptedMsg()
Test which verifies that the block cipher used is creating uniquely encrypted
messages each time.
|
private APrioriInfo priorInfo
private ECKeyParam param
private ECKey aliceKey
private ECKey bobKey
private ECPublicKeyParameters alicePubKey
private ECPublicKeyParameters bobPubKey
private ECPrivateKeyParameters alicePriKey
private ECPrivateKeyParameters bobPriKey
private ECEngine aliceEngine
private ECEngine bobEngine
private SDFGenerator generator
private byte[] seed
private ISAACRandomGenerator encCSPRNG
private ISAACRandomGenerator decCSPRNG
CipherParameters encNonce
CipherParameters decNonce
private static final java.lang.String expASCIICharset
private static final java.lang.String exp128ByteMsg
private static final java.lang.String exp64ByteMsg
private static final java.lang.String exp63ByteMsg
private static final java.lang.String exp33ByteMsg
private static final java.lang.String exp32ByteMsg
private static final java.lang.String exp12ByteMsg
private static final java.lang.String exp1ByteMsg
private java.util.ArrayList<java.lang.String> expBlockSizes
public void setUp() throws java.lang.Exception
java.lang.Exception
public void asciiCharset()
public void blockSizes()
public void uniqueEncryptedMsg()