aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add 2 scripts for testing libraries. Change suites to prevent error in some ↵davidhofman2021-10-087-21/+19
| | | | | | | | | | | libraries. (#14) * Add two scripts for testing libraries. * Fix KeyAgreement phase already executed error * Small change to the new testing script. * Fix comments in Composite suite.
* Implement StandalonePerformanceSuite. (#13)davidhofman2021-09-154-1/+265
| | | | | | | | | | | * add PerformanceTest. * Add and implement StandalonePerformanceSuite. * Add author information. * Add missing null check to signature performance tests. * Fix reset method in KeyAgreementTestable.
* Implement StandaloneWrongSuite. (#12)davidhofman2021-09-067-0/+604
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add StandaloneWrongSuite. * Partially implement StandaloneWrongSuite. * Add setParam method to EC_Params. * Fix new setParam method in EC_Params. * Implement StandaloneWrongSuite * Add custom classes for testing wrong curve parameters. * Update custom classes. * Add more custom classes for testing curves with wrong parameters. * Modify StandaloneWrongSuite to work with the new custom classes. * Various small cosmetic changes to new custom classes. * Add missing author information to various classes. * Fix a small mistake in CustomECFieldF2m * Add randomG test, change some variables to final. * Add option to skip certain tests + various small changes.
* Implement StandaloneEdgeCasesSuite. (#11)davidhofman2021-09-052-0/+315
| | | | | | | | | | | | | * Partially implement StandaloneEdgeCasesSuite. * Partially implement StandaloneEdgeCasesSuite (2). * Add S=0 and S=1 tests to StandaloneEdgeCasesSuite. * Finish implementing StandaloneEdgeCasesSuite. * Add author information to StandaloneEdgeCasesSuite. * Remove unnecessary comment.
* Implement StandaloneSignatureSuite. (#10)davidhofman2021-08-263-43/+147
| | | | | | | | | | | | | | | * Add StandaloneSignatureSuite. * Implement StandaloneSignatureSuite. * Change the new constructor in SignatureTestable. * Add author information to StandaloneSignatureSuite. * Change tests to expectError. * Add guard condition to verify stages in SignatureTestable. * Change the new constructor in SignatureTestable.
* Implement StandaloneCompositeSuite. (#9)davidhofman2021-08-242-0/+215
| | | | | | | | | | | * Add StandaloneCompositeSuite. * Implement StandaloneCompositeSuite. * Moved things out of constructor to prevent list-suites from crashing. * General cleanup of StandaloneCompositeSuite. * Add author information to StandaloneCompositeSuite.
* Fix Cofactor suite.J08nY2021-08-242-3/+11
|
* Fix typo in Miscellaneous suite.J08nY2021-08-241-1/+1
|
* Fix standalone list-suites command.J08nY2021-08-241-4/+5
|
* Add author information.J08nY2021-08-246-0/+18
|
* Suppress unnecessary warnings.J08nY2021-08-249-2/+48
|
* Implement StandaloneMiscSuite. (#8)davidhofman2021-08-223-1/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add empty StandaloneTwistSuite * implemented StandaloneTwistSuite * add expectError method to KeyAgreementTest and KeyGeneratorTest * utilize new expectError methods, general cleanup of StandaloneTwistSuite * changed KeyAgreement to ECDH in the description * Add StandaloneCofactorSuite class. * Implement StandaloneCofactorSuite. * Add StandaloneDegenerateSuite. * Add StandaloneInvalidSuite. * Implement StandaloneInvalidSuite. * Implement StandaloneDegenerateSuite. * Small cosmetic change to some constructors. * Add new expectError method to SignatureTest. * Add and implement StandaloneMiscSuite. * More small cosmetic changes. Co-authored-by: davidhofman <davidhofman@github.com> Co-authored-by: Ján Jančár <J08nY@users.noreply.github.com>
* Implement Twist, Invalid, Cofactor and Degenerate standalone suites. (#7)davidhofman2021-08-228-8/+482
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add empty StandaloneTwistSuite * implemented StandaloneTwistSuite * add expectError method to KeyAgreementTest and KeyGeneratorTest * utilize new expectError methods, general cleanup of StandaloneTwistSuite * changed KeyAgreement to ECDH in the description * Add StandaloneCofactorSuite class. * Implement StandaloneCofactorSuite. * Add StandaloneDegenerateSuite. * Add StandaloneInvalidSuite. * Implement StandaloneInvalidSuite. * Implement StandaloneDegenerateSuite. * Small cosmetic change to some constructors. * More small cosmetic changes. Co-authored-by: davidhofman <davidhofman@github.com>
* implement StandaloneTestVectorSuite (#6)davidhofman2021-08-163-2/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add StandaloneTestVectorSuite class (not implemented) * Add option to choose test suites in standalone app, StandaloneTestVectorSuite now shows up in list-libs * partially implement StandaloneTestVectorSuite * partially implement StandaloneTestVectorSuite 2 * remove unused variable * modify xml data to support standalone test vectors * StandaloneTestVectorSuite is now working * CardTestVectorSuite now skips results with DH_RAW keyAlgo * some additional debug information are now printed * change DH_RAW to DH_PLAIN * remove debug printing, clean up * remove unnecessary if check in CardTestVectorSuite * fix test suite command line option Co-authored-by: davidhofman <davidhofman@github.com>
* Fix warnings in standalone shims, update BoringSSL.J08nY2020-08-096-52/+52
|
* Fix reader allocation commands.J08nY2020-08-091-4/+4
|
* Fix Nettle and LibreSSL implementations.J08nY2019-12-286-54/+130
|
* Update Travis, add info about new supported libs.J08nY2019-12-251-1/+0
|
* Nettle support (#4)Michal Čech2019-12-2511-9/+759
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Nettle java file, added Nettle class to NativeProvider files * Nettle makefile * Nettle get curves and setup * makefile and build-standalone * makefile hogweed * added other curves * mpz to biginteger * switch nignum to mpz * it is finally possible to write nettle info * prepared generate curve * generate key pair progress * removed key agreement * ECParameterSpec experiment * ECParameterSpec experiment - source * Another try * it is finally running (at least), debugging messages * generator generates - needs to be tested * removed unnecessary function * signature preparations * signature almost done * added der encoding * verification and der decoder * added support for secp192r1, secp224r1, secp384r1 and secp521r1 * fixed the variable length of the points and scalars * removed debug prints * removed debug prints (java) * removed Curve25519 artifacts, added ECDH support * removed fragment of openssl, added cleanup to ecdh * src/cz/crcs/ectester/standalone/libs/jni/nettle.c * reverted plot * fixed signature for secp521r1 * replaced for loop with memset * added nettle to requirements in NettleLib class * removed conflicting lines * fixed the der signature encoder / decoder * Switched ECGenParameterSpec -> ECParameterSpec explicit retyping to EC_Store Co-authored-by: Ján Jančár <J08nY@users.noreply.github.com>
* Add support for LibreSSLMatěj Grabovský2019-12-0811-24/+836
| | | | | The code is copied from the BoringSSL implementation with some minor modifications to accomodate slight differences in the LibreSSL API.
* Add --fixed option to standalone ECDSA.J08nY2019-08-181-2/+15
|
* Update and fix library building.J08nY2019-08-041-2/+1
|
* Unify native timing, add more timing sources.J08nY2019-07-2430-601/+451
|
* Better handle KeyBuilder and KeyPair construction in the applet.J08nY2019-07-185-11/+44
|
* Add option to use KeyBuilder.J08nY2019-07-167-33/+102
|
* Fix Microsoft CNG provider.J08nY2019-07-114-147/+245
|
* Add MatrixSSL support.J08nY2019-07-1116-29/+776
|
* Write info about digest used to CSV files in standalone.J08nY2019-07-105-5/+49
|
* Add Intel Performance Primitives Crypto support (ECDH and ECDSA).feature/ippcpJ08nY2019-07-104-3/+336
|
* Add Intel Performance Primitives Crypto support (keygen).J08nY2019-07-0911-15/+793
|
* Add mbedTLS support.J08nY2019-07-0416-26/+961
|
* Fix nonce extraction exception.J08nY2019-03-281-8/+9
|
* Optimize memory allocation in the applet.J08nY2019-03-222-54/+141
|
* Update notebooks.J08nY2019-03-211-1/+1
|
* Add backwards compatible search for applet in reader app.0.3.3J08nY2019-03-181-10/+43
|
* Bump version.J08nY2019-03-184-8/+8
|
* Add customizable time resolution.develJ08nY2019-03-186-74/+70
|
* Migrate plot scripts to Jupyter notebook format. Fix ECDSA nonce recovery.J08nY2019-03-182-6/+17
|
* Fix chunking.J08nY2019-03-145-63/+71
|
* Add better chunking support and detect it at runtime.J08nY2019-03-145-16/+31
|
* Add custom command chaining to be able to test T=0 cards.J08nY2019-03-135-26/+118
|
* Fix invalid points in the invalid test suite (some were not padded).J08nY2019-03-0715-431/+431
|
* Do not use certain keys in cofactor test, as they are really not cofactor ↵J08nY2019-03-061-20/+25
| | | | points.
* Fix some keys in invalid test suite, add "random" test option.J08nY2019-03-0615-92/+111
|
* Some fixes in wrong test suite, better ordering of tests.J08nY2019-03-046-39/+37
|
* Add better semi-random generation of inputs in tests.J08nY2019-03-047-42/+169
|
* Many fixes to cofactor, edge-cases and misc suites.J08nY2019-02-289-10/+84
|
* Fix some wycheproof vectors, fix edge-case test.J08nY2019-02-282-19/+20
|
* Fix build.J08nY2019-02-281-5/+5
|
* Add better loading of keys to standalone.J08nY2019-02-285-100/+115
|