aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Added some generated invalid curvesJ08nY2017-05-0229-117/+8641
|
* Reworked invalid curve testing, added generated anomalous curvesJ08nY2017-05-0120-42/+137
|
* Move Default test suite to real TestsJ08nY2017-05-015-79/+75
|
* Change EC_Consts.CORRUPTION_* into a short that's maskableJ08nY2017-05-017-152/+165
|
* Move tests to TestSuitesJ08nY2017-04-274-286/+335
|
* Fix some test-vector tests, also test printingJ08nY2017-04-1912-34/+103
|
* Add id to EC_Params subclasses toString, fix EC_Params.expandJ08nY2017-04-196-28/+17
|
* Refactor testing, add Config class, make EC_Data read bytesJ08nY2017-04-1916-463/+854
| | | | | | | | | | | | - The ECTester.Config class now stores and reads all CLI options - Testing with the -t / --test option was partially refactored into: - Test: Encapsulates one Command and Response pair with expected result, a real result and a callback to dynamically assign result - TestSuite: Encapsulates a bunch of tests, represents a whole category of tests either that can be run on any curve or only on some.
* Fix NIST test vectors (were zero padded to wrong lengths)J08nY2017-04-1910-10/+10
|
* Add invalid curves test(partly) and some parameters (brainpool) for itJ08nY2017-04-1518-179/+409
| | | | | | | | | - curves.xml, keys.xml and results.xml's entries can now instead of file path to point to csv file, contain the csv data inline. - Moved EC_Category to reader package from data - Fixed printing of named objects - Added ECDH/C test for KA_BOTH which does ECDH and ECDHC on the applet side, compares the results and reports success/failure etc.
* Some docs, allow EC_* objects to print themselves.J08nY2017-04-048-24/+65
|
* Fix mis-entered brainpool curvesJ08nY2017-04-047-7/+7
|
* Added more documentation, anomalous curves, support command.J08nY2017-03-3028-169/+252
| | | | | | | | | | | | | - 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.
* Added test-vectors, and test-vector testingJ08nY2017-03-287-44/+394
|
* Fix schema.xsdJ08nY2017-03-281-2/+2
|
* Added nist and brainpool test vectors, also smallpub testJ08nY2017-03-2881-15/+303
|
* Added new curves, started adding default & dangerous tests.J08nY2017-03-2731-47/+250
|
* Refactored EC_Params, renamed EC_Data, added first test vectors.J08nY2017-03-2614-157/+275
|
* Fixed loading private key from file.J08nY2017-03-251-1/+1
|
* Implemented ECDHC testing.J08nY2017-03-246-28/+84
| | | | | | - also some work on ECDH/ECDHC compatibility testing - new option -dhc / --ecdhc [count] the same as ecdh option, except it does ECDHC algo
* Fixed XML schema.xsdJ08nY2017-03-231-69/+36
|
* Added new corruption type and X962 point compression methods.J08nY2017-03-225-13/+47
|
* Added Cleanup command to request object deletion, prevents memory corruption.J08nY2017-03-174-13/+59
|
* Applet: better handling of exceptions, new command for memory cleanup.J08nY2017-03-176-121/+243
|
* Cleanup, add ECDH corruption tests.J08nY2017-03-167-125/+108
| | | | | | | | | | | 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
* fix mistypeJ08nY2017-03-141-1/+1
|
* Created a new command: CorruptJ08nY2017-03-146-62/+205
| | | | | Originaly a part of a set command, now allows more control of keypairs
* Reader: fixed ECDH and ECDSA output, also named curve testingJ08nY2017-03-094-13/+47
|
* Reader: added verbose flag, made CardMngr quiet.J08nY2017-03-073-29/+64
|
* Added timing output to responses, added bulk ECDH/ECDSA testing.J08nY2017-03-072-48/+93
|
* Added support for named curves (in jar).J08nY2017-03-0623-196/+748
| | | | | - Doesn't work well while simulating, some weird memory bug. Will investigate. - Has categories of curves, more will be added.
* removed newlines, changed f2m format, removed old SimpleAPDUJ08nY2017-02-21132-853/+784
| | | | | | | | | | | | | | data: - now truly csv - f2m format now: m,e_1,e_2,e_3,a,b,gx,gy,r,k,wx,wy,s reader: - removed SimpleAPDU - changed f2m format applet: - changed f2m format
* Added export instruction, and action to readerJ08nY2017-01-319-369/+527
| | | | | | | | | | 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-276-100/+260
| | | | | | | | - 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-2260-264/+973
| | | | | | | | | | | | | - 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
* reader: fixed -h optionJ08nY2017-01-171-2/+6
|
* reader: implemented ecdh and ecdsa actions, also added some docsJ08nY2017-01-175-109/+248
| | | | | | - ecdh and ecdsa instructions now work, although without output to file, yet. - added MIT license headers to main classes
* implemented ecdh testing reader side:J08nY2017-01-174-108/+210
| | | | ectester -dh -fp -b 192
* data: renamed curves, since they arent really saved in csv...J08nY2017-01-1733-0/+0
|
* major changes, ECTester rewrite, moved to valid packageJ08nY2017-01-1747-2291/+2032
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* SimpleAPDU: some cleanupJ08nY2017-01-172-18/+17
|
* Fixed some issues with errors in key generation, and their propagationJ08nY2016-12-113-35/+47
|
* Added CLI options, Apache commons-cli lib, anomalous curve key exportJ08nY2016-12-105-202/+258
| | | | | | | | - Added CLI options, see SimpleAPDU.jar -h - Added Apache commons-cli for CLI options, it uses Apache license - Added support for anomalous curve export both reader/applet side: `java -jar SimpleAPDU.jar -g 10 -b 256 -fp -s` generates 10 curves over ECSP256 an anomalous 256bit curve.
* Changed ECSP curves, 192b and 521b, to ones that have a prime pubkey order.J08nY2016-11-302-184/+185
|
* Fixed small-pub degree test, still crashes most cards.J08nY2016-11-302-14/+20
|
* fixed small pubkey order test, this times out on some ↵J08nY2016-11-282-36/+46
| | | | | | cards(SCARD_E_NOT_TRANSACTED) yet some cards run fine and report illegal value.
* Added test for small public key degree in ECDHJ08nY2016-11-284-30/+134
|
* EC_Consts: addded anomalous curves, with ordinady base points and small ↵J08nY2016-11-281-16/+780
| | | | order pubkeys
* Added tests for non-prime p, ECDSA into the main test suite.J08nY2016-11-263-48/+79
| | | | Also fixed ECDSA test.
* SimpleAPDU: Added cli parsingJ08nY2016-11-261-82/+121
| | | | | | | | | Just a simple command line parsing for two options, should be changed to use some CLI parser lib in the future. -g [num] - generates [num] keys, if [num] is ommitted runs forever -a - runs the test suite for all standard key sizes and field types By default -a is run.