aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/reader/Command.java
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize reader packages.J08nY2017-10-131-588/+0
|
* Add class docs to EC_* classes.J08nY2017-10-131-0/+10
|
* explicit support for reallocation of KeyAgreement engine with provided typepetrs2017-06-161-0/+27
|
* Fix ECDH testsJ08nY2017-06-021-0/+35
|
* Added support for extended APDUs, fixed problems with large cmdsJ08nY2017-05-041-0/+3
| | | | | | | | | | | - 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
* Move Default test suite to real TestsJ08nY2017-05-011-8/+6
|
* Change EC_Consts.CORRUPTION_* into a short that's maskableJ08nY2017-05-011-7/+8
|
* Move tests to TestSuitesJ08nY2017-04-271-2/+142
|
* Some docs, allow EC_* objects to print themselves.J08nY2017-04-041-10/+19
|
* Added more documentation, anomalous curves, support command.J08nY2017-03-301-7/+26
| | | | | | | | | | | | | - Added CURVES.md, FORMAT.md and TESTS.md that talk a bit about what ECTester actually does/support. - Added anomalous curves (where |F_p| = #|E(F_p)|), meaning these curves have a trace of one and ECDLP over them reduces to easy DLP over multiplicative F*_p. These concrete curves are from Atsuko Miyaji's paper: Elliptic curves over F_p Suitable for Cryptosystems. - Added Support command that queries the results of KeyAgreement and Signature allocations. - Renamed smallpub curves to nonprime curves. - Fixed nonprime curves test suite.
* Implemented ECDHC testing.J08nY2017-03-241-3/+6
| | | | | | - also some work on ECDH/ECDHC compatibility testing - new option -dhc / --ecdhc [count] the same as ecdh option, except it does ECDHC algo
* Added Cleanup command to request object deletion, prevents memory corruption.J08nY2017-03-171-0/+20
|
* Cleanup, add ECDH corruption tests.J08nY2017-03-161-6/+6
| | | | | | | | | | | 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-12/+47
| | | | | Originaly a part of a set command, now allows more control of keypairs
* Added export instruction, and action to readerJ08nY2017-01-311-18/+48
| | | | | | | | | | 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_*
* Added option to generate fresh keys(-f) also implemented basic ECC testingJ08nY2017-01-271-5/+22
| | | | | | | | - Added -f/--fresh - Fixed response align - Implemented basic EC testing, more advanced/complex tests are gonna be done through pre-generated files/curves/keys inside the jar or externally. Such as the invalid curve attack test and others.
* reader: Added a Command and Response abstractionJ08nY2017-01-221-0/+241
- For easier testing - Command assembles the correct instruction from params in its constructor - Command.send() sends the command and obtains the Response with timing - Response parses the ResponseAPDU in its constructor and provides convenience methods to access its contents/SWs/success /failure/print data: Added more curves