| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
cards(SCARD_E_NOT_TRANSACTED)
yet some cards run fine and report illegal value.
|
| | |
|
| |
|
|
| |
Also fixed ECDSA test.
|
| |\ |
|
| | |
| |
| |
| | |
Added support for mass gathering of ECC keys (refactoring needed)
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| | |
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.
|
| |/ |
|
| |
|
|
| |
multiple errors within single apdu
|
| | |
|
| | |
|
| |
|
|
| |
new keypair with it (shoudl fail)
|
| |
|
|
| |
previous test which must succedd
|
| | |
|
| | |
|
| |
|
|
|
| |
- added test for ECDH secret generation: valid and invalid point
- output beautification
|
| |
|
|
|
|
| |
curve, set custom curve, gen keypair with custom curve, set invalid curve, gen keypair with invalid curve)
- parsing code with formating and printing
|
| |
|