aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/data (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add ANSI curves.J08nY2017-11-129-0/+60
|
* Split the ec package into common package, rename reader part of the project.J08nY2017-11-101-1/+1
|
* Init and print EC_Key/EC_Keypair id when available.J08nY2017-10-131-3/+3
|
* Update composite curves 384 and 521 with new data.J08nY2017-10-137-14/+169
|
* Update the composite order curves.J08nY2017-10-139-17/+377
|
* Rename nonprime curves to -> composite curves.J08nY2017-10-1318-65/+65
|
* Added ANSSI curve and GOST curvesJ08nY2017-05-246-0/+39
|
* Reformatted curve and test CSV dataJ08nY2017-05-20161-161/+161
|
* Added support for extended APDUs, fixed problems with large cmdsJ08nY2017-05-041-1/+1
| | | | | | | | | | | - 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
* Added some generated invalid curvesJ08nY2017-05-0227-115/+8633
|
* Reworked invalid curve testing, added generated anomalous curvesJ08nY2017-05-0115-26/+75
|
* Fix some test-vector tests, also test printingJ08nY2017-04-193-11/+26
|
* Refactor testing, add Config class, make EC_Data read bytesJ08nY2017-04-191-2/+6
| | | | | | | | | | | | - 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-159-87/+194
| | | | | | | | | - 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.
* Fix mis-entered brainpool curvesJ08nY2017-04-047-7/+7
|
* Added more documentation, anomalous curves, support command.J08nY2017-03-3023-110/+98
| | | | | | | | | | | | | - 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-284-37/+290
|
* Fix schema.xsdJ08nY2017-03-281-2/+2
|
* Added nist and brainpool test vectors, also smallpub testJ08nY2017-03-2880-10/+290
|
* Added new curves, started adding default & dangerous tests.J08nY2017-03-2729-3/+140
|
* Refactored EC_Params, renamed EC_Data, added first test vectors.J08nY2017-03-269-5/+35
|
* Fixed XML schema.xsdJ08nY2017-03-231-69/+36
|
* Cleanup, add ECDH corruption tests.J08nY2017-03-161-2/+1
| | | | | | | | | | | 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
* Reader: fixed ECDH and ECDSA output, also named curve testingJ08nY2017-03-091-4/+21
|
* Added support for named curves (in jar).J08nY2017-03-0617-49/+356
| | | | | - 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-21126-343/+663
| | | | | | | | | | | | | | 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
* reader: Added a Command and Response abstractionJ08nY2017-01-2252-0/+133
| | | | | | | | | | | | | - 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
* data: renamed curves, since they arent really saved in csv...J08nY2017-01-1733-0/+0
|
* major changes, ECTester rewrite, moved to valid packageJ08nY2017-01-1733-0/+210
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