summaryrefslogtreecommitdiff
path: root/nettle-internal.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement OCB mode, RFC 7253.Niels Möller2023-02-071-0/+15
|
* Stricter validation of nettle_cipher and nettle_hash in tests.Niels Möller2022-09-281-2/+2
| | | | Increase NETTLE_MAX_HASH_BLOCK_SIZE to 144, to accommodate sha3_224.
* Implement AES-GCM-SIVDaiki Ueno2022-09-271-0/+1
| | | | | | | | | This implements AES-GCM-SIV, described in RFC8452, on top of the existing AES-GCM primitives. In particular, its hash algorithm POLYVAL is implemented using the GHASH with additional byte order conversion according to RFC8452 Appendix A. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* Fix alloca warnings on bsd systems.Niels Möller2022-08-051-0/+2
| | | | | * nettle-internal.h: Include stdlib.h, fix alloca warnings on BSD. * hmac.c: Delete corresponding include here, no longer needed.
* Add specialized functions for cbc-aes.Niels Möller2021-09-091-0/+8
|
* Delete benchmarking of openssl arcfour and corresponding glue codeNiels Möller2021-02-151-1/+0
|
* abi: explicitly export intended symbols and hide othersNikos Mavrogiannopoulos2018-07-071-0/+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.
* New macros TMP_DECL_ALIGN and TMP_ALLOC_ALIGN.Niels Möller2018-02-191-2/+23
|
* Provide wrappers around OpenSSL AES GCMDmitry Eremin-Solenikov2018-02-171-0/+3
| | | | | | | | 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>
* examples: convert nettle-benchmark to use openssl EVP APIsDaniel P. Berrange2017-08-261-0/+1
| | | | | | | | | | | | | | | | | 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>
* New constant NETTLE_MAX_HASH_CONTEXT_SIZE.Niels Möller2017-03-201-0/+1
| | | | | | * nettle-internal.h (NETTLE_MAX_HASH_CONTEXT_SIZE): New constant. * testsuite/meta-hash-test.c (test_main): Add sanity check for NETTLE_MAX_HASH_CONTEXT_SIZE.
* Update copyright headers for dual licensing.Niels Möller2014-04-121-24/+32
|
* Resurrect nettle_arcfour128, as an internal aead.Niels Möller2014-03-181-0/+2
| | | | Do benchmarking of arcfour, salsa20 and chacha via time_aead.
* Define and use nettle_cipher_func, for block ciphers.Niels Möller2014-03-181-6/+5
|
* Make eax_aes128 interface public.Niels Möller2014-02-131-30/+0
|
* Generalized nettle_aead abstraction, and moved to nettle-meta.h.Niels Möller2014-02-121-49/+0
|
* Dropped length argument from nettle_set_key_func.set_key-changesNiels Möller2014-01-291-6/+5
|
* Benchmarking of chacha.Niels Möller2014-01-271-0/+1
|
* New gcm-aes interface.Niels Möller2014-01-261-14/+1
|
* Deleted NETTLE_MAX_BIGNUM_BITS and NETTLE_MAX_BIGNUM_SIZE.Niels Möller2013-12-151-2/+0
|
* Implemented EAX.Niels Möller2013-10-051-0/+43
|
* New interface for AES-256. Also deleted old aes-meta.c.Niels Möller2013-06-251-0/+1
|
* New interface for AES-192.Niels Möller2013-06-251-0/+1
|
* New interface for AES-128.Niels Möller2013-06-251-0/+2
|
* Use size_t rather than unsigned for all hash-related functions.Niels Möller2013-04-261-3/+3
|
* Benchmark salsa20r12.Niels Möller2013-04-171-0/+1
|
* Fixed TMP_ALLOC, was missing parentheses.Niels Möller2013-02-201-2/+2
|
* Updated FSF address. Patch from David Woodhouse.Niels Möller2012-07-071-2/+2
|
* New constant NETTLE_MAX_BIGNUM_SIZE.Niels Möller2012-04-231-0/+1
|
* Support salsa20 in nettle-benchmark.Niels Möller2012-03-301-3/+4
|
* Converted files to utf-8.Niels Möller2012-02-181-1/+1
|
* Added missing extern declarations.Niels Möller2011-07-171-12/+12
| | | | | Rev: nettle/ChangeLog:1.207 Rev: nettle/nettle-internal.h:1.4
* (struct nettle_aead): Tentative interface forNiels Möller2011-02-141-0/+50
| | | | | | authenticated encryption with associated data. Rev: nettle/nettle-internal.h:1.3
* (NETTLE_MAX_HASH_BLOCK_SIZE)Niels Möller2010-03-261-2/+2
| | | | | | | (NETTLE_MAX_HASH_DIGEST_SIZE): Increased, to take sha512 into account. Rev: nettle/nettle-internal.h:1.2
* * nettle-internal.h (nettle_openssl_md5)Niels Möller2005-09-281-0/+3
| | | | | | (nettle_openssl_sha1): Declare. Rev: src/nettle/nettle-internal.h:1.9
* (nettle_openssl_aes128, nettle_openssl_aes192)Niels Möller2005-09-281-0/+4
| | | | | | (nettle_openssl_aes256, nettle_openssl_arcfour128): Declare. Rev: src/nettle/nettle-internal.h:1.8
* (NETTLE_MAX_CIPHER_BLOCK_SIZE): New constant.Niels Möller2005-07-021-1/+2
| | | | Rev: src/nettle/nettle-internal.h:1.7
* Reverted change to include alloca.h. Should be fixed in acinclude.m4 instead.Niels Möller2004-02-071-3/+0
| | | | | Rev: src/nettle/ChangeLog:1.241 Rev: src/nettle/nettle-internal.h:1.6
* (TMP_ALLOC etc): Include <alloca.h> ifNiels Möller2004-02-071-6/+6
| | | | | | available. Rev: src/nettle/nettle-internal.h:1.5
* (TMP_DECL, TMP_ALLOC): New macros. When allocaNiels Möller2004-01-081-0/+23
| | | | | | | is unavailable, they work by allocating a fix amount of stack and imposing a hard limit on what can be allocated. Rev: src/nettle/nettle-internal.h:1.4
* Comment update on nettle-openssl.c.Niels Möller2002-11-081-1/+4
| | | | Rev: src/nettle/nettle-internal.h:1.3
* Declare openssl glue ciphers.Niels Möller2002-07-181-0/+5
| | | | Rev: src/nettle/nettle-internal.h:1.2
* New files.Niels Möller2002-01-141-0/+41
Rev: src/nettle/nettle-internal.c:1.1 Rev: src/nettle/nettle-internal.h:1.1