aboutsummaryrefslogtreecommitdiff
path: root/src/applets/ECKeyGenerator.java
Commit message (Collapse)AuthorAgeFilesLines
* Added CLI options, Apache commons-cli lib, anomalous curve key exportJ08nY2016-12-101-1/+4
| | | | | | | | - 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-10/+21
|
* ECKeyGenerator: fixes to key genertion,J08nY2016-11-211-45/+57
| | | | | | | | 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/+33
| | | | | | | | 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: made parameters maskableJ08nY2016-11-211-15/+12
| | | | | | 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-51/+92
|
* refactoring ECTester: created ECKeyGenerator, ECKeyTesterJ08nY2016-11-211-0/+179