aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
diff options
context:
space:
mode:
authorJ08nY2017-12-27 18:29:52 +0100
committerJ08nY2017-12-27 18:29:52 +0100
commitf40db310cdb28d39e1bb050e9adb920f4b35a8ed (patch)
treed4a97d56aa5bf274569fe0cf1aa9645a6ebe9d31 /src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
parent71006eb01c60b3556b620b7d4579d65ed6f86926 (diff)
downloadECTester-f40db310cdb28d39e1bb050e9adb920f4b35a8ed.tar.gz
ECTester-f40db310cdb28d39e1bb050e9adb920f4b35a8ed.tar.zst
ECTester-f40db310cdb28d39e1bb050e9adb920f4b35a8ed.zip
Cleanup the applet ECKA and Signature objects.
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 e4e55c9..00e3a46 100644
--- a/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
+++ b/src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java
@@ -60,7 +60,7 @@ public class CardInvalidCurvesSuite extends CardTestSuite {
tests.add(CommandTest.expect(new Command.Generate(cardManager, ECTesterApplet.KEYPAIR_LOCAL), ExpectedValue.SUCCESS));
List<Test> ecdhTests = new LinkedList<>();
for (EC_Key.Public pub : keys) {
- Command ecdhCommand = new Command.ECDH_direct(cardManager, ECTesterApplet.KEYPAIR_LOCAL, ECTesterApplet.EXPORT_FALSE, EC_Consts.CORRUPTION_NONE, EC_Consts.KA_ANY, pub.flatten());
+ Command ecdhCommand = new Command.ECDH_direct(cardManager, ECTesterApplet.KEYPAIR_LOCAL, ECTesterApplet.EXPORT_FALSE, EC_Consts.CORRUPTION_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."));
}
tests.add(CompoundTest.all(ExpectedValue.SUCCESS, "Invalid curve test of " + curve.getId(), ecdhTests.toArray(new Test[0])));