aboutsummaryrefslogtreecommitdiff
path: root/src/simpleapdu/SimpleAPDU.java
Commit message (Collapse)AuthorAgeFilesLines
* major changes, ECTester rewrite, moved to valid packageJ08nY2017-01-171-460/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-171-6/+5
|
* Fixed some issues with errors in key generation, and their propagationJ08nY2016-12-111-0/+11
|
* Added CLI options, Apache commons-cli lib, anomalous curve key exportJ08nY2016-12-101-185/+228
| | | | | | | | - 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.
* Added test for small public key degree in ECDHJ08nY2016-11-281-2/+17
|
* Added tests for non-prime p, ECDSA into the main test suite.J08nY2016-11-261-34/+18
| | | | 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.
* Merge branch 'devel' of github.com:petrs/ECTester into develJ08nY2016-11-211-32/+99
|\
| * Added support for multiple readerspetrs2016-11-181-30/+93
| | | | | | | | Added support for mass gathering of ECC keys (refactoring needed)
* | ECKeyGenerator: fixes to key genertion,J08nY2016-11-211-1/+1
| | | | | | | | | | | | | | | | ECKeyTester: fixed ECDH/ECDHC pubkey length issue. EC_Consts: fixed decompressG and getCurveParameter array copy mismatch SimpleECCApplet: fixed B parameter test All tests now pass as before.
* | Implemented External curve setting on applet sideJ08nY2016-11-211-0/+6
| | | | | | | | | | | | | | | | SimpleECCApplet: added TestEC_SupportExternal which receives an FP or F2M elliptic curve parameters in an APDU, sets it and tries ECDH, ECDSA. ECKeyGenerator: added setExternalCurve, which reads and sets external parameters from one buffer, with data order: field | a | b | g | r | k
* | EC_Consts: added F2M curve support, + F2M curve sect163r1 to startJ08nY2016-11-211-35/+40
|/
* EC curve testing in separate apdu due to weird behavior of some cards after ↵v0.0.3petrs2016-10-041-11/+62
| | | | multiple errors within single apdu
* fixed issue with setting rewrite offset optionpetrs2016-10-041-19/+22
|
* corruption of parameter B addedpetrs2016-10-031-23/+79
|
* added test which repeatedly tries to set invalid B parameter and generate ↵petrs2016-09-271-6/+50
| | | | new keypair with it (shoudl fail)
* removal of leftover codepetrs2016-09-091-42/+3
|
* testing of EC F2M curves added (no predefined curves yet, just default ones)petrs2016-09-091-3/+6
|
* - added curve secp384r1petrs2016-09-081-10/+32
| | | | | - added test for ECDH secret generation: valid and invalid point - output beautification
* result print beautificationpetrs2016-09-081-6/+6
|
* - added testing of EC_FP 128-521bits (KeyPair allocation, gen key with def. ↵petrs2016-09-081-4/+77
| | | | | | curve, set custom curve, gen keypair with custom curve, set invalid curve, gen keypair with invalid curve) - parsing code with formating and printing
* initial commitpetrs2016-09-081-0/+78