aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
diff options
context:
space:
mode:
authorJ08nY2018-03-14 21:23:45 +0100
committerJ08nY2018-03-14 21:23:45 +0100
commitec84a28d3930140f908e18cd82562357abcf84a8 (patch)
tree640f991f09211fb37a2e6586c8fc47bc1cbeb3ec /src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
parentdb1f7faf4608d5552293e2ea7e49a6b2a069f7ea (diff)
downloadECTester-ec84a28d3930140f908e18cd82562357abcf84a8.tar.gz
ECTester-ec84a28d3930140f908e18cd82562357abcf84a8.tar.zst
ECTester-ec84a28d3930140f908e18cd82562357abcf84a8.zip
Rename the CORRUPT command to TRANSFORM, as it does that now.
Diffstat (limited to 'src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java')
-rw-r--r--src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java b/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
index 0cf27ec..fab7786 100644
--- a/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
+++ b/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
@@ -53,7 +53,7 @@ public class CardInvalidCurvesSuite extends CardTestSuite {
List<Test> ecdhTests = new LinkedList<>();
for (EC_Key.Public pub : keys) {
- Command ecdhCommand = new Command.ECDH_direct(this.card, ECTesterApplet.KEYPAIR_LOCAL, ECTesterApplet.EXPORT_FALSE, EC_Consts.CORRUPTION_NONE, ECTesterApplet.KeyAgreement_ALG_EC_SVDP_DH, pub.flatten());
+ Command ecdhCommand = new Command.ECDH_direct(this.card, ECTesterApplet.KEYPAIR_LOCAL, ECTesterApplet.EXPORT_FALSE, EC_Consts.TRANSFORMATION_NONE, ECTesterApplet.KeyAgreement_ALG_EC_SVDP_DH, pub.flatten());
ecdhTests.add(CommandTest.expect(ecdhCommand, ExpectedValue.FAILURE, "Card correctly rejected point on invalid curve.", "Card incorrectly accepted point on invalid curve."));
}
Test ecdh = CompoundTest.all(ExpectedValue.SUCCESS, "Perform ECDH with invalid public points", ecdhTests.toArray(new Test[0]));