Skip to content

Commit a1a64b4

Browse files
committed
updates for working tests for FPE, TupleHash, ParallelHash
1 parent 3e4bc7c commit a1a64b4

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

crypto/test/src/crypto/test/GcmSivTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public override string Name
2727
get { return "GCM-SIV"; }
2828
}
2929

30-
public override void PerformTest()
30+
[Test]
31+
public override void PerformTest()
3132
{
3233
new AESGcmSiv128Test1().testTheCipher(this);
3334
new AESGcmSiv128Test2().testTheCipher(this);

crypto/test/src/crypto/test/ParallelHashTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public override string Name
2424
{
2525
get { return "ParallelHash"; }
2626
}
27-
28-
public override void PerformTest()
27+
[Test]
28+
public override void PerformTest()
2929
{
3030
ParallelHash pHash = new ParallelHash(128, new byte[0], 8);
3131

crypto/test/src/crypto/test/SP80038GTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private void testDisable()
292292
}
293293
catch (InvalidOperationException e)
294294
{
295-
IsEquals("Fpe disabled", e.Message);
295+
IsEquals("FPE disabled", e.Message);
296296
}
297297
Environment.SetEnvironmentVariable("org.bouncycastle.fpe.disable", "false");
298298

@@ -323,7 +323,7 @@ private void testFF3_1_255()
323323

324324
ulong valueToEncrypt = 0x31009155FFL;
325325

326-
byte[] bytes = Pack.UInt64_To_BE(valueToEncrypt);
326+
byte[] bytes = Hex.Decode("00000031009155FF");
327327
byte[] enc = new byte[bytes.Length];
328328
//Encrypt
329329

@@ -508,8 +508,8 @@ public override string Name
508508
{
509509
get { return "SP80038GTest"; }
510510
}
511-
512-
public override void PerformTest()
511+
[Test]
512+
public override void PerformTest()
513513
{
514514
testFF1();
515515
testFF1w();

crypto/test/src/crypto/test/TupleHashTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public override string Name
2323
get { return "TupleHash"; }
2424
}
2525

26-
public override void PerformTest()
26+
[Test]
27+
public override void PerformTest()
2728
{
2829
TupleHash tHash = new TupleHash(128, new byte[0]);
2930

0 commit comments

Comments
 (0)