aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/applet/EC_Consts.java
Commit message (Collapse)AuthorAgeFilesLines
* Basic Gradle setup.J08nY2024-03-251-1512/+0
|
* Suppress unnecessary warnings.J08nY2021-08-241-0/+1
|
* Optimize memory allocation in the applet.J08nY2019-03-221-48/+96
|
* Implement more tests for wrong parameters. Implement cloning for Tests.J08nY2018-06-271-1/+5
| | | | | | | - Test G = infinity. - Test wrong r, where [r]G != infinity, - prime - composite
* Add compression test suite.J08nY2018-05-021-3/+8
|
* Add ECDSA_sign and ECDSA_verify commands, to allow separate testing.J08nY2018-04-051-13/+32
|
* Rename the CORRUPT command to TRANSFORM, as it does that now.J08nY2018-03-141-27/+27
|
* Fix default test suite F2M domain setting.J08nY2018-02-031-1/+0
|
* Simplify test suites.J08nY2018-01-091-2/+21
|
* Cleanup the applet ECKA and Signature objects.J08nY2017-12-271-7/+0
|
* Fix ECDH testsJ08nY2017-06-021-15/+70
|
* Minor fixesJ08nY2017-05-201-1/+1
|
* Added support for extended APDUs, fixed problems with large cmdsJ08nY2017-05-041-2/+2
| | | | | | | | | | | - Switched ECTesterApplet to Javacard 2.2.2 which supports Extended length APDUs (necessary for some Set commands when a large external curve is sent to the applet) - The incoming APDU is now copied over to a sufficiently large buffer before being processed - Simplified instruction processing logic - Renamed ECUtil to AppletUtil - Fixed padding error in nist/P-521
* Reworked invalid curve testing, added generated anomalous curvesJ08nY2017-05-011-4/+4
|
* Change EC_Consts.CORRUPTION_* into a short that's maskableJ08nY2017-05-011-72/+88
|
* Fix some test-vector tests, also test printingJ08nY2017-04-191-0/+1
|
* Added new curves, started adding default & dangerous tests.J08nY2017-03-271-0/+12
|
* Implemented ECDHC testing.J08nY2017-03-241-6/+15
| | | | | | - also some work on ECDH/ECDHC compatibility testing - new option -dhc / --ecdhc [count] the same as ecdh option, except it does ECDHC algo
* Added new corruption type and X962 point compression methods.J08nY2017-03-221-7/+38
|
* Added Cleanup command to request object deletion, prevents memory corruption.J08nY2017-03-171-1/+6
|
* Cleanup, add ECDH corruption tests.J08nY2017-03-161-9/+0
| | | | | | | | | | | Reader: - added ECDH corruption tests - fixed EC_Data keys.xml search path - added more output to --list-named / -ln Both: - changed up ECDH command to support arbitrary temporary pubkey corruption
* Created a new command: CorruptJ08nY2017-03-141-10/+9
| | | | | Originaly a part of a set command, now allows more control of keypairs
* Added export instruction, and action to readerJ08nY2017-01-311-4/+11
| | | | | | | | | | One can now export the default domain parameters of the card/simulation with: `ectester.jar -e -fp -b 192 -o params.txt` - Renamed ParamReader to ECParams - Added Command.Export and Response.Export - Moved ECKeyGenerator.KEY_* to EC_Consts.KEY_*
* major changes, ECTester rewrite, moved to valid packageJ08nY2017-01-171-0/+1298
reader: ECTester, mostly rewritten SimpleAPDU - communication with applet now done through simpler instructions: allocate, set, generate, ecdh, ecdsa - moved to a valid Java package dir cz.crcs.ectester - SimpleAPDU: renamed to ECTester - CardMngr: seamlessly supports simulation vs real card - DirtyLogger: takes a nullable String and creates file - ECTester: currently only supports key generation, curve testing under way - supports external curve setting, example files in data package - tests can be done through files, to achieve a more modular approach - Util: static utility class - ParamReader: reads curve domain parameters and keys from simple csv-like human-readable files with hex strings applet: ECTesterApplet, rewrite of SimpleECCApplet - more granularity in instructions - moved complexity over to the reader side - ECKeyGenerator: now a class that takes KeyPair as param - ECKeyTester: now a class that takes KeyPair as param - EC_Consts: removed ecsp curves(now done externally), removed unused methods - ECTesterApplet: currently only tested instructions are: allocate, set, generate data: contains several curve and pubkey files in format supported by ParamReader - Prime field curves: p,a,b,gx,gy,r,k - Binary field curves: e1,a,b,gx,gy,r,k or e1,e2,e3,a,b,gx,gy,r,k - Public key: wx,wy - Private key: s - Key: wx,wy,s - all values are hex strings