aboutsummaryrefslogtreecommitdiff
path: root/src/applets/EC_Consts.java
Commit message (Collapse)AuthorAgeFilesLines
* major changes, ECTester rewrite, moved to valid packageJ08nY2017-01-171-2020/+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
* Changed ECSP curves, 192b and 521b, to ones that have a prime pubkey order.J08nY2016-11-301-184/+184
|
* fixed small pubkey order test, this times out on some ↵J08nY2016-11-281-30/+37
| | | | | | cards(SCARD_E_NOT_TRANSACTED) yet some cards run fine and report illegal value.
* Added test for small public key degree in ECDHJ08nY2016-11-281-10/+40
|
* EC_Consts: addded anomalous curves, with ordinady base points and small ↵J08nY2016-11-281-16/+780
| | | | order pubkeys
* Merge branch 'devel' of github.com:petrs/ECTester into develJ08nY2016-11-211-1/+5
|\
| * Added support for multiple readerspetrs2016-11-181-0/+3
| | | | | | | | Added support for mass gathering of ECC keys (refactoring needed)
* | ECKeyGenerator: fixes to key genertion,J08nY2016-11-211-10/+21
| | | | | | | | | | | | | | | | 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.
* | EC_Consts: added sect233r1, sect283r1, sect409r1, sect571r1J08nY2016-11-211-2/+396
| |
* | EC_Consts: made parameters maskableJ08nY2016-11-211-11/+7
| | | | | | | | | | | | ECKeyGenerator: since parameters are maskable, one can now setCustomInvalidCurve(curve, PARAMETER_A | PARAMETER_B,...) and the resulting curve will have both A and B invalid.
* | EC_Consts: added F2M curve support, + F2M curve sect163r1 to startJ08nY2016-11-211-533/+703
| |
* | refactoring ECTester: created ECKeyGenerator, ECKeyTesterJ08nY2016-11-211-3/+4
|/
* fixed incorrect curve parameter P for secp384r1 curvepetrs2016-10-041-1/+1
|
* more options for corruptions of B argument addedpetrs2016-09-271-15/+45
|
* removal of leftover codev0.0.1v0petrs2016-09-091-4/+0
|
* parameters for secp521r1 addedpetrs2016-09-091-1/+132
|
* - added curve secp384r1petrs2016-09-081-1/+101
| | | | | - added test for ECDH secret generation: valid and invalid point - output beautification
* added support for curves secp128r1, secp160r1, secp224r1petrs2016-09-081-1/+180
|
* - added testing of EC_FP 128-521bits (KeyPair allocation, gen key with def. ↵petrs2016-09-081-46/+69
| | | | | | 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/+184