diff options
| author | J08nY | 2018-11-05 14:57:19 +0100 |
|---|---|---|
| committer | J08nY | 2018-11-05 14:57:19 +0100 |
| commit | b683ced3b8e104dbe74a5057e6170def4c53839b (patch) | |
| tree | 27ec699e7f12fc378c6803b184dd7278ca970885 | |
| parent | 1243b4acace365b0231aca22470517ae42c4ed1d (diff) | |
| download | ECTester-b683ced3b8e104dbe74a5057e6170def4c53839b.tar.gz ECTester-b683ced3b8e104dbe74a5057e6170def4c53839b.tar.zst ECTester-b683ced3b8e104dbe74a5057e6170def4c53839b.zip | |
| -rw-r--r-- | src/cz/crcs/ectester/reader/test/CardCompressionSuite.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cz/crcs/ectester/reader/test/CardCompressionSuite.java b/src/cz/crcs/ectester/reader/test/CardCompressionSuite.java index 7338415..2fc8da2 100644 --- a/src/cz/crcs/ectester/reader/test/CardCompressionSuite.java +++ b/src/cz/crcs/ectester/reader/test/CardCompressionSuite.java @@ -141,12 +141,12 @@ public class CardCompressionSuite extends CardTestSuite { continue; } tests.add(allocate); - tests.add(CommandTest.expect(new Command.Set(this.card, ECTesterApplet.KEYPAIR_LOCAL, EC_Consts.CURVE_external, curve.getParams(), curve.flatten()), Result.ExpectedValue.ANY)); - tests.add(CommandTest.expect(new Command.Generate(this.card, ECTesterApplet.KEYPAIR_LOCAL), Result.ExpectedValue.ANY)); + tests.add(CommandTest.expect(new Command.Set(this.card, ECTesterApplet.KEYPAIR_LOCAL, EC_Consts.CURVE_external, curve.getParams(), curve.flatten()), Result.ExpectedValue.SUCCESS)); + tests.add(CommandTest.expect(new Command.Generate(this.card, ECTesterApplet.KEYPAIR_LOCAL), Result.ExpectedValue.SUCCESS)); byte[] pointData = ECUtil.toX962Compressed(key.getParam(EC_Consts.PARAMETER_W)); byte[] pointDataEncoded = ByteUtil.prependLength(pointData); tests.add(CommandTest.expect(new Command.ECDH_direct(this.card, ECTesterApplet.KEYPAIR_LOCAL, ECTesterApplet.EXPORT_FALSE, EC_Consts.TRANSFORMATION_NONE, EC_Consts.KeyAgreement_ALG_EC_SVDP_DH, pointDataEncoded), Result.ExpectedValue.FAILURE)); - doTest(CompoundTest.all(Result.ExpectedValue.SUCCESS, "Non-residue test of " + curve.getId() + ".", tests.toArray(new Test[0]))); + doTest(CompoundTest.greedyAll(Result.ExpectedValue.SUCCESS, "Non-residue test of " + curve.getId() + ".", tests.toArray(new Test[0]))); } } } |
