summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Rework setting of LD_LIBRARY_PATH for tests.test-shlib-dirNiels Möller2020-03-311-2/+1
| | | | | | | | | | | | * testsuite/Makefile.in (check): Pass only TEST_SHLIB_DIR to the run-tests script, and leave setting of LD_LIBRARY_PATH and related variables to that script. * examples/Makefile.in (check): Likewise. * run-tests: Check TEST_SHLIB_DIR, and set up LD_LIBRARY_PATH and related member variables. * config.make.in (abs_top_builddir, TEST_SHLIB_DIR): New variables.
* Merge commit '33d047b2fdf56207fa26a41c531eb7b3192ced53' into ecc-gostNiels Möller2020-01-261-2/+2
|\ | | | | | | For gitlab CI fix.
| * hogweed-benchmark: Pass correct sizes to knuth_lfib_random.Niels Möller2020-01-251-2/+2
| |
* | hogweed-benchmark: enable testing of GOST DSADmitry Baryshkov2020-01-251-0/+104
| | | | | | | | Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* | Add support for GOST GC512A curveDmitry Eremin-Solenikov2020-01-161-0/+1
| | | | | | | | | | | | | | | | Add support for GC512A curve ("TLS Supported Groups" registry, draft-smyshlyaev-tls12-gost-suites) also known as tc26-gost-3410-12-512-paramSetA (RFC 7836). Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* | Add support for GOST GC256B curveDmitry Eremin-Solenikov2020-01-161-0/+1
|/ | | | | | | | | Add support for GC256B curve ("TLS Supported Groups" registry, draft-smyshlyaev-tls12-gost-suites) also known as GostR3410-2001-CryptoPro-A and GostR3410-2001-CryptoPro-XchA (RFC 4357). Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* Use %-pattern rules instad of suffix rules.require-gnu-makeNiels Möller2020-01-151-1/+1
|
* Simplify dependency rules using GNU make -include.Niels Möller2020-01-151-2/+2
| | | | | | | | | | | | * aclocal.m4 (DEP_INCLUDE): Delete substituted variable. * Makefile.in: Use the GNU make directive -include to include dependency .d files. Delete dependency files on make clean. * examples/Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. Also use $(OBJEXT) properly. * tools/Makefile.in: Likewise. * configure.ac (dummy-dep-files): Delete these config commands.
* Add benchmarking of ed25519, ed448 and curve448.ed448Niels Möller2020-01-031-34/+117
|
* Simplify ecc-benchmark.c and delete curve25519 special case.Niels Möller2019-12-171-32/+9
|
* Implement Curve448 primitivesDaiki Ueno2019-11-301-0/+1
| | | | | | | This patch adds the necessary primitives for "curve448", defined in RFC 7748. Those primitives are namely: addition, doubling, scalar multiplication of the generator or an arbitrary point, inversion, and square root.
* Add support for GOSTHASH94CP: GOST R 34.11-94 hash with CryptoPro S-boxDmitry Eremin-Solenikov2019-09-151-0/+1
| | | | | | | | | | Hash gosthash94 implements GOST R 34.11-94 standard using S-Box defined in the standard 'for testing purposes only'. RFC 4357 defines S-Box (CryptoPro one) for GOST R 34.11-94 hash function that is widely used in applications. Add separate hash function algorithm (gosthash94cp) implementing GOST R 34.11-94 hashing using that S-Box. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* examples: Delete eratosthenes from TARGETS, left over from earlier change.Niels Möller2019-01-191-1/+1
|
* Delete eratosthenseprogramNiels Möller2019-01-122-426/+1
|
* nettle-benchmark: Add volatile to inline asm.Niels Möller2019-01-101-16/+16
|
* In openssl benchmarks, use RSA_generate_key_ex.Niels Möller2018-12-261-17/+17
|
* Add benchmarking of RSA signatures with blindingNiels Möller2018-11-171-4/+40
|
* Add benchmarking for HMAC functionsDmitry Eremin-Solenikov2018-07-301-0/+154
| | | | | | | In preparation of changing internal HMAC interface add benchmarking for HMAC functions. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Additional analogous assert in eratosthenese program.Niels Möller2018-07-131-2/+4
|
* Check for allocation overflow in eratosthenes program.Niels Möller2018-07-131-2/+7
|
* Fix handling of eratosthenes -q.Niels Möller2018-07-121-1/+1
|
* Fix at-exit leak in eratosthenes program.Niels Möller2018-07-121-2/+3
|
* abi: explicitly export intended symbols and hide othersNikos Mavrogiannopoulos2018-07-071-1/+2
| | | | | | | | | | | | | This adds all exported symbols in the map files explicitly under the following rules: - Symbols mentioned in internal headers go in a section which is valid only for testing, and linking with these symbols will break in library updates. - Symbols mentioned in installed headers go in the exported sections and are considered part of the ABI. - All internal symbols move to internal headers. - The _nettle_md5_compress and _nettle_sha1_compress become exported without the _nettle prefix, due to existing usage.
* Add leading underscore to data symbols.rename-data-symbolsNiels Möller2018-03-172-10/+10
|
* Merge branch 'cmac-support'Niels Möller2018-02-211-1/+23
|\
| * Added support for CMACNikos Mavrogiannopoulos2018-02-191-1/+23
| | | | | | | | | | | | | | | | That adds support for CMAC as a generic framework for 128-bit block and key ciphers, as well as API for AES-128-CMAC, and AES-256-CMAC. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* | Update RSA examples to use aes256_ctx, not the deprecated aes_ctx.Niels Möller2018-02-203-12/+12
| |
* | Delete unused struct process_ctx.Niels Möller2018-02-201-7/+0
|/
* Move expressions with side effects out of assertsDmitry Eremin-Solenikov2018-02-181-9/+20
| | | | | | | | It is wrong to use expressions with side-effects in asserts, they can easily be compiled away. Move them out of assert() macro and just compare the result. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Enable OpenSSL AES-GCM in nettle-benchmarkDmitry Eremin-Solenikov2018-02-171-0/+3
| | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Provide wrappers around OpenSSL AES GCMDmitry Eremin-Solenikov2018-02-171-2/+107
| | | | | | | | For benchmarking purposes provide wrappers around OpenSSL AES GCM implementation. Note, digest callback will work only for encryption due to OpenSSL internals. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Add "fall through" comment.Niels Möller2018-01-161-0/+1
|
* Allow user to specify multiple algorithms to nettle-benchmarkDmitry Eremin-Solenikov2018-01-131-21/+26
| | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Benchmark in-place operation separately, for cbc_decrypt and ctr_crypt.Niels Möller2018-01-081-10/+28
|
* Set DYLD_LIBRARY_PATH when running tests.Niels Möller2017-10-221-2/+3
|
* Merge branch 'armor-signedness' into master-updatesNiels Möller2017-09-244-4/+4
|\
| * Change type of base16- and base64-encoded data from uint8_t to char.Niels Möller2017-08-274-4/+4
| |
* | Add Red Hat copyright line.openssl-benchmark-updateNiels Möller2017-08-291-1/+1
| |
* | Rearrange openssl cipher glue, to use struct openssl_cipher_ctx.Niels Möller2017-08-261-47/+52
| |
* | examples: convert nettle-benchmark to use openssl EVP APIsDaniel P. Berrange2017-08-262-160/+91
|/ | | | | | | | | | | | | | | | | The nettle-benchmark program currently uses the openssl low level cipher APIs for benchmarking. This means it always runs the generic software implementation, never able to take advantage of impls optimized for new hardware (eg AES-NI). Rewriting it to use the higher EVP APIs means we can use the same code for all ciphers, and automatically trigger hardware optimized versions, giving a fairer comparison against openssl as commonly used in applications. Use of the generic openssl impl can still be forced by setting an env variable OPENSSL_ia32cap="~0x200000200000000" Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* hogweed-benchmark: eliminated memory leakNikos Mavrogiannopoulos2017-05-161-1/+4
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* New public function memeql_sec, declared in memops.h.Niels Möller2016-09-051-1/+2
|
* Delete an unused function.Niels Möller2016-09-031-11/+0
|
* Use uint8_t for hash_file buffer.Niels Möller2016-08-161-1/+1
|
* Rename write_string --> write_date.Niels Möller2016-08-168-17/+17
| | | | | Change type of input data to const void *, for this function and write_file.
* Helper hash_string: Delete length argument.Niels Möller2016-08-051-16/+15
|
* hogweed-benchmark: Use uint8_t for curve25519 values.Niels Möller2016-08-051-4/+4
|
* Use uint8_t for sexp strings.Niels Möller2016-08-051-3/+3
|
* Helper read_file: Use size_t for sizes, and uint8_t for the contents.Niels Möller2016-08-054-11/+11
|
* Rename nettle_curve25519 to _nettle_curve25519, and remove declaration from ↵Niels Möller2015-03-191-1/+1
| | | | ecc-curve.h.