Skip to content

Commit e237fb4

Browse files
committed
corrected conflict resolution
1 parent fabed60 commit e237fb4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

core/src/test/java/org/bouncycastle/crypto/test/ElephantTest.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,30 @@ public String getName()
2828
public void performTest()
2929
throws Exception
3030
{
31-
//testVectors(ElephantEngine.ElephantParameters.elephant160, "v160_2");
32-
CipherTest.checkCipher(10, 12, 40, new CipherTest.Instace()
31+
CipherTest.checkAEADCipherOutputSize(16, 12, 20, 8, new ElephantEngine(ElephantEngine.ElephantParameters.elephant160));
32+
CipherTest.checkAEADCipherOutputSize(16, 12, 22, 8, new ElephantEngine(ElephantEngine.ElephantParameters.elephant176));
33+
CipherTest.checkAEADCipherOutputSize(16, 12, 25, 16, new ElephantEngine(ElephantEngine.ElephantParameters.elephant200));
34+
// //testVectors(ElephantEngine.ElephantParameters.elephant160, "v160_2");
35+
ElephantEngine elephant = new ElephantEngine(ElephantEngine.ElephantParameters.elephant200);
36+
testExceptions(elephant, elephant.getKeyBytesSize(), elephant.getIVBytesSize(), elephant.getBlockSize());
37+
testParameters(elephant, 16, 12, 16);
38+
CipherTest.checkCipher(10, 12, 40, 128, new CipherTest.Instace()
3339
{
3440
@Override
3541
public AEADCipher CreateInstace()
3642
{
3743
return new ElephantEngine(ElephantEngine.ElephantParameters.elephant160);
3844
}
3945
});
40-
CipherTest.checkCipher(10, 12, 40, new CipherTest.Instace()
46+
CipherTest.checkCipher(10, 12, 40, 128, new CipherTest.Instace()
4147
{
4248
@Override
4349
public AEADCipher CreateInstace()
4450
{
4551
return new ElephantEngine(ElephantEngine.ElephantParameters.elephant176);
4652
}
4753
});
48-
CipherTest.checkCipher(10, 12, 40, new CipherTest.Instace()
54+
CipherTest.checkCipher(10, 12, 40, 128, new CipherTest.Instace()
4955
{
5056
@Override
5157
public AEADCipher CreateInstace()

0 commit comments

Comments
 (0)