| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
- also some work on ECDH/ECDHC compatibility testing
- new option -dhc / --ecdhc [count] the same as ecdh option,
except it does ECDHC algo
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
| |
Originaly a part of a set command, now allows more control
of keypairs
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
- https://github.com/licel/jcardsim/issues/15
|
| |
|
|
|
| |
- Doesn't work well while simulating, some weird memory bug. Will investigate.
- Has categories of curves, more will be added.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
One can now export the default domain parameters of the card/simulation
with:
`ectester.jar -e -fp -b 192 -o params.txt`
- Renamed ParamReader to ECParams
- Added Command.Export and Response.Export
- Moved ECKeyGenerator.KEY_* to EC_Consts.KEY_*
|
| |
|
|
|
|
|
|
| |
- Added -f/--fresh
- Fixed response align
- Implemented basic EC testing, more advanced/complex tests are gonna be
done through pre-generated files/curves/keys inside the jar or externally.
Such as the invalid curve attack test and others.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| | |
|
| |
|
|
|
|
| |
- ecdh and ecdsa instructions now work, although without output
to file, yet.
- added MIT license headers to main classes
|
| |
|
|
| |
ectester -dh -fp -b 192
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|