diff options
| author | J08nY | 2018-04-05 00:38:24 +0200 |
|---|---|---|
| committer | J08nY | 2018-04-05 00:38:24 +0200 |
| commit | efc1a237f83a6fe7bcfaced2aaebcfeae116a774 (patch) | |
| tree | 0449db4cb20771c322671b48bfb7832a39e05da8 /src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java | |
| parent | 4497bea39a2793270f0d1442ae4976c1c111483f (diff) | |
| download | ECTester-efc1a237f83a6fe7bcfaced2aaebcfeae116a774.tar.gz ECTester-efc1a237f83a6fe7bcfaced2aaebcfeae116a774.tar.zst ECTester-efc1a237f83a6fe7bcfaced2aaebcfeae116a774.zip | |
Add ECDSA_sign and ECDSA_verify commands, to allow separate testing.
Diffstat (limited to 'src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java')
| -rw-r--r-- | src/cz/crcs/ectester/reader/test/CardInvalidCurvesSuite.java | 2 |
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 fab7786..d3c5f99 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.TRANSFORMATION_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, EC_Consts.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])); |
