]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
6 years agoFurther separation of CMAC per-message state from subkeys. cmac-layout
Niels Möller [Wed, 5 Jun 2019 20:25:20 +0000 (22:25 +0200)] 
Further separation of CMAC per-message state from subkeys.

6 years agoRevert move of cmac128_ctx index
Niels Möller [Wed, 5 Jun 2019 19:24:31 +0000 (21:24 +0200)] 
Revert move of cmac128_ctx index

6 years agoNew struct cmac128_key.
Niels Möller [Sat, 1 Jun 2019 08:30:29 +0000 (10:30 +0200)] 
New struct cmac128_key.

6 years agoMention deletion of des-compat.h in NEWS
Niels Möller [Wed, 15 May 2019 09:30:55 +0000 (11:30 +0200)] 
Mention deletion of des-compat.h in NEWS

6 years agoDelete old libdes/openssl compatibility interface. delete-des-compat
Niels Möller [Sun, 12 May 2019 09:03:42 +0000 (11:03 +0200)] 
Delete old libdes/openssl compatibility interface.

6 years agoNEWS update for Nettle-3.5.
Niels Möller [Sat, 11 May 2019 19:29:52 +0000 (21:29 +0200)] 
NEWS update for Nettle-3.5.

6 years agoChangeLog entry for EPILOGUE fix.
Niels Möller [Sat, 27 Apr 2019 07:37:17 +0000 (09:37 +0200)] 
ChangeLog entry for EPILOGUE fix.

6 years agoAdd missing EPILOGUEs in assembly files
Simo Sorce [Sat, 27 Apr 2019 07:05:08 +0000 (09:05 +0200)] 
Add missing EPILOGUEs in assembly files

6 years agotools/nettle-pbkdf2.c: Check strdup return value.
Niels Möller [Sun, 14 Apr 2019 06:35:47 +0000 (08:35 +0200)] 
tools/nettle-pbkdf2.c: Check strdup return value.

6 years agoRedefine struct aes_ctx as a union of key-size specific contexts. aes-struct-layout
Niels Möller [Fri, 29 Mar 2019 06:32:42 +0000 (07:32 +0100)] 
Redefine struct aes_ctx as a union of key-size specific contexts.

6 years agoRearrange cmac's block_mulx, make it closer to xts_shift.
Niels Möller [Wed, 27 Mar 2019 05:30:58 +0000 (06:30 +0100)] 
Rearrange cmac's block_mulx, make it closer to xts_shift.

* xts.c (xts_shift): Arrange with a single write to u64[1].
* cmac.c (block_mulx): Rewrite to work in the same way as
xts_shift, with 64-bit operations. XTS and CMAC use opposite
endianness, but otherwise, these two functions are identical.

6 years agoUpdate docs for xts-aes
Niels Möller [Sun, 24 Mar 2019 12:34:08 +0000 (13:34 +0100)] 
Update docs for xts-aes

The structs are named xts_aes*_key, not xts_aes*_ctx.

6 years agoChangeLog entries for XTS support.
Niels Möller [Sun, 24 Mar 2019 12:31:37 +0000 (13:31 +0100)] 
ChangeLog entries for XTS support.

6 years agoRecode xts_shift based on endianess
Simo Sorce [Wed, 20 Mar 2019 15:46:22 +0000 (11:46 -0400)] 
Recode xts_shift based on endianess

This creates two implementations of xts_shift, one for little endian and
one for big endian. This way we avoid copies to additional variables and
inefficient byteswapping on platforms that do not have dedicated
instructions.

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoInline ciphertext stealing
Simo Sorce [Tue, 19 Mar 2019 20:30:53 +0000 (16:30 -0400)] 
Inline ciphertext stealing

This avoids copying and may be somewhat more readable without the need
for so much explanation.

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoAdd support for XTS encryption mode
Simo Sorce [Thu, 4 Oct 2018 18:38:50 +0000 (14:38 -0400)] 
Add support for XTS encryption mode

XEX encryption mode with tweak and ciphertext stealing (XTS) is
standardized in IEEE 1619 and generally used for storage devices.

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoMove block buffer last in hash context structs.
Niels Möller [Wed, 10 Oct 2018 17:44:32 +0000 (19:44 +0200)] 
Move block buffer last in hash context structs.

6 years agoMerge branch 'delete-nettle-stdint-h' into master
Niels Möller [Tue, 22 Jan 2019 18:06:43 +0000 (19:06 +0100)] 
Merge branch 'delete-nettle-stdint-h' into master

6 years ago.gitlab-ci.yml: Add -std=c89 and -DNDEBUG builds.
Niels Möller [Mon, 21 Jan 2019 22:07:27 +0000 (23:07 +0100)] 
.gitlab-ci.yml: Add -std=c89 and -DNDEBUG builds.

6 years agoexamples: Delete eratosthenes from TARGETS, left over from earlier change.
Niels Möller [Sat, 19 Jan 2019 16:21:25 +0000 (17:21 +0100)] 
examples: Delete eratosthenes from TARGETS, left over from earlier change.

6 years agofat-arm.c: Fix declarations of chacha_core functions.
Niels Möller [Sat, 19 Jan 2019 15:16:37 +0000 (16:16 +0100)] 
fat-arm.c: Fix declarations of chacha_core functions.

6 years agoChangeLog entries for previous change.
Niels Möller [Sat, 19 Jan 2019 08:42:24 +0000 (09:42 +0100)] 
ChangeLog entries for previous change.

6 years agoAdd --enable-fat support for arm neon chacha20
Yuriy M. Kaminskiy [Wed, 2 Jan 2019 16:41:32 +0000 (19:41 +0300)] 
Add --enable-fat support for arm neon chacha20

On BCM2837B0 (Cortex-A53) @1.4GHz (Raspberry Pi 3B+),
Before:
`gnutls-cli --benchmark-ciphers`
       CHACHA20-POLY1305 (16384) 51.54 MB/sec
`gnutls-cli --benchmark-tls-ciphers`:
       ECDHE_RSA_CHACHA20_POLY1305 (payload 1400)  21.31 MB/sec
       ECDHE_RSA_CHACHA20_POLY1305 (payload 15360)  24.60 MB/sec
`nettle-benchmark`
 chacha     encrypt   71.90
 chacha     decrypt   71.89
chacha_poly1305     encrypt   48.17
chacha_poly1305     decrypt   48.17
chacha_poly1305      update  146.03

After:
`gnutls-cli --benchmark-ciphers`
       CHACHA20-POLY1305 (16384) 68.44 MB/sec
`gnutls-cli --benchmark-tls-ciphers`:
       ECDHE_RSA_CHACHA20_POLY1305 (payload 1400) 27.25 MB/sec
       ECDHE_RSA_CHACHA20_POLY1305 (payload 15360) 32.41 MB/sec
`nettle-benchmark`
 chacha     encrypt  106.00
 chacha     decrypt  105.94
chacha_poly1305     encrypt   65.94
chacha_poly1305     decrypt   65.96
chacha_poly1305      update  175.24

6 years agoUpdate NEWS for Nettle-3.5.
Niels Möller [Sat, 19 Jan 2019 08:09:12 +0000 (09:09 +0100)] 
Update NEWS for Nettle-3.5.

6 years ago.gitlab-ci.yml: Use ./bootstrap in gnutls build.
Niels Möller [Thu, 17 Jan 2019 20:51:46 +0000 (21:51 +0100)] 
.gitlab-ci.yml: Use ./bootstrap in gnutls build.

6 years agoeccdata: More asserts in ecc_pippenger_precompute.
Niels Möller [Sun, 13 Jan 2019 09:48:26 +0000 (10:48 +0100)] 
eccdata: More asserts in ecc_pippenger_precompute.

6 years ago.gitlab-ci.yml: updated to new images by gnutls
Nikos Mavrogiannopoulos [Wed, 2 Jan 2019 09:31:08 +0000 (10:31 +0100)] 
.gitlab-ci.yml: updated to new images by gnutls

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
6 years agoDelete eratosthenseprogram
Niels Möller [Sat, 12 Jan 2019 16:31:21 +0000 (17:31 +0100)] 
Delete eratosthenseprogram

6 years agotests: Fix assert call with side effects.
Niels Möller [Sun, 6 Jan 2019 10:11:15 +0000 (11:11 +0100)] 
tests: Fix assert call with side effects.

(cherry picked from commit 73d3c6d5586cc0fd81eab081078144d621de07b4)

6 years agotest: Use %u and corresponding cast, when printing bit sizes.
Niels Möller [Thu, 10 Jan 2019 20:59:03 +0000 (21:59 +0100)] 
test: Use %u and corresponding cast, when printing bit sizes.

6 years agonettle-benchmark: Add volatile to inline asm.
Niels Möller [Thu, 10 Jan 2019 20:57:09 +0000 (21:57 +0100)] 
nettle-benchmark: Add volatile to inline asm.

6 years agoAdd missing include of sha2-internal.h.
Niels Möller [Tue, 8 Jan 2019 22:00:45 +0000 (23:00 +0100)] 
Add missing include of sha2-internal.h.

6 years agoDelete nettle-stdint.h
Niels Möller [Sun, 6 Jan 2019 08:24:55 +0000 (09:24 +0100)] 
Delete nettle-stdint.h

6 years agoeccdata: Add assert.
Niels Möller [Wed, 26 Dec 2018 18:49:56 +0000 (19:49 +0100)] 
eccdata: Add assert.

6 years agoIn openssl benchmarks, use RSA_generate_key_ex.
Niels Möller [Wed, 26 Dec 2018 16:49:31 +0000 (17:49 +0100)] 
In openssl benchmarks, use RSA_generate_key_ex.

6 years agoeccdata: Check that table size is at least 2.
Niels Möller [Wed, 26 Dec 2018 16:27:00 +0000 (17:27 +0100)] 
eccdata: Check that table size is at least 2.

Intended to silence warning from the clang static analyzer.

6 years agoBump version number and sonames, for Nettle-3.5
Niels Möller [Wed, 26 Dec 2018 15:30:04 +0000 (16:30 +0100)] 
Bump version number and sonames, for Nettle-3.5

6 years agoDelete obsolete TODO file
Niels Möller [Wed, 26 Dec 2018 15:19:17 +0000 (16:19 +0100)] 
Delete obsolete TODO file

6 years agoNew header file pkcs1-internal.h
Niels Möller [Wed, 26 Dec 2018 15:18:09 +0000 (16:18 +0100)] 
New header file pkcs1-internal.h

6 years agoMerge branch 'release-3.4-fixes' into master
Niels Möller [Wed, 26 Dec 2018 10:30:21 +0000 (11:30 +0100)] 
Merge branch 'release-3.4-fixes' into master

6 years agoFix compilation with gcc -std=c89
Niels Möller [Wed, 26 Dec 2018 10:07:51 +0000 (11:07 +0100)] 
Fix compilation with gcc -std=c89

6 years agoFix accidental use of C99 for loop.
Niels Möller [Wed, 26 Dec 2018 10:04:31 +0000 (11:04 +0100)] 
Fix accidental use of C99 for loop.

* rsa-sign-tr.c (sec_equal): Fix accidental use of C99 for loop.
Reported by Andreas Gustafsson.
* testsuite/rsa-sec-decrypt-test.c (test_main): Likewise.

6 years agoNote release of Nettle-3.4.1. nettle_3.4.1_release_20181204
Niels Möller [Tue, 4 Dec 2018 20:55:48 +0000 (21:55 +0100)] 
Note release of Nettle-3.4.1.

6 years agoUpdate NEWS file for 3.4.1. nettle_3.4.1rc1
Niels Möller [Wed, 28 Nov 2018 21:42:56 +0000 (22:42 +0100)] 
Update NEWS file for 3.4.1.

Mention dependency on GMP-6, and RSA performance regression.

6 years agoUpdate configure check to require GMP-6.0.0 or later.
Niels Möller [Wed, 28 Nov 2018 21:33:47 +0000 (22:33 +0100)] 
Update configure check to require GMP-6.0.0 or later.

6 years agoRewrite pkcs1_decrypt as a wrapper around _pkcs1_sec_decrypt_variable.
Niels Möller [Wed, 28 Nov 2018 21:01:29 +0000 (22:01 +0100)] 
Rewrite pkcs1_decrypt as a wrapper around _pkcs1_sec_decrypt_variable.

* testsuite/rsa-encrypt-test.c (test_main): Fix allocation of
decrypted storage. Update test of rsa_decrypt, to allow clobbering
of all of the passed in message area.

6 years agoAdd rsa-internal.h to distributed headers.
Niels Möller [Wed, 28 Nov 2018 20:54:15 +0000 (21:54 +0100)] 
Add rsa-internal.h to distributed headers.

Patch from Simo Sorce.

6 years agorsa-internal.h: Add include of rsa.h.
Niels Möller [Wed, 28 Nov 2018 20:52:30 +0000 (21:52 +0100)] 
rsa-internal.h: Add include of rsa.h.

6 years agoDescribe RSA improvements in NEWS.
Niels Möller [Tue, 27 Nov 2018 07:56:27 +0000 (08:56 +0100)] 
Describe RSA improvements in NEWS.

6 years agoRewrote _rsa_sec_compute_root, for clarity.
Niels Möller [Tue, 27 Nov 2018 07:21:02 +0000 (08:21 +0100)] 
Rewrote _rsa_sec_compute_root, for clarity.

Use new local helper functions, with their own itch functions.

6 years agorsa-compute-root-test: Fix qsize. Try more keys.
Niels Möller [Mon, 26 Nov 2018 06:32:28 +0000 (07:32 +0100)] 
rsa-compute-root-test: Fix qsize. Try more keys.

6 years agoUpdate mini-gmp version for _rsa_sec_compute_root_tr rename.
Niels Möller [Sun, 25 Nov 2018 20:57:59 +0000 (21:57 +0100)] 
Update mini-gmp version for _rsa_sec_compute_root_tr rename.

6 years agoRenamed rsa-sec-compute-root-test --> rsa-compute-root-test.
Niels Möller [Sun, 25 Nov 2018 19:29:07 +0000 (20:29 +0100)] 
Renamed rsa-sec-compute-root-test --> rsa-compute-root-test.

6 years agocnd_mpn_zero: Use a volatile-declared mask variable.
Niels Möller [Sun, 25 Nov 2018 19:10:13 +0000 (20:10 +0100)] 
cnd_mpn_zero: Use a volatile-declared mask variable.

6 years agoMove decl. of rsa_sec_compute_root_tr to internal header.
Niels Möller [Sun, 25 Nov 2018 18:46:30 +0000 (19:46 +0100)] 
Move decl. of rsa_sec_compute_root_tr to internal header.

Also renamed with leading underscore, and updated all callers.

6 years agoSwitch rsa_compute_root to use side-channel safe variant
Simo Sorce [Sun, 25 Nov 2018 18:23:38 +0000 (19:23 +0100)] 
Switch rsa_compute_root to use side-channel safe variant

6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 17:53:55 +0000 (18:53 +0100)] 
ChangeLog for previous change.

6 years agoRandomzed testing of rsa-sec-compute-root
Simo Sorce [Fri, 9 Nov 2018 22:32:04 +0000 (17:32 -0500)] 
Randomzed testing of rsa-sec-compute-root

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agotestutils.c: Fix high bits of the mpz_urandomb used with mini-gmp.
Niels Möller [Sun, 25 Nov 2018 16:11:39 +0000 (17:11 +0100)] 
testutils.c: Fix high bits of the mpz_urandomb used with mini-gmp.

6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 16:06:21 +0000 (17:06 +0100)] 
ChangeLog for previous change.

6 years agoCatch bad private keys early on.
Simo Sorce [Thu, 8 Nov 2018 16:27:05 +0000 (11:27 -0500)] 
Catch bad private keys early on.

6 years agoUse NETTLE_OCTET_SIZE_TO_LIMB_SIZE.
Niels Möller [Sun, 25 Nov 2018 15:58:38 +0000 (16:58 +0100)] 
Use NETTLE_OCTET_SIZE_TO_LIMB_SIZE.

6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 15:57:27 +0000 (16:57 +0100)] 
ChangeLog for previous change.

6 years agoUse side-channel silent pkcs1 in rsa_decrypt_tr
Simo Sorce [Mon, 12 Nov 2018 22:06:31 +0000 (17:06 -0500)] 
Use side-channel silent pkcs1 in rsa_decrypt_tr

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoChangeLog entry, and minor comment fixes
Niels Möller [Sun, 25 Nov 2018 15:47:23 +0000 (16:47 +0100)] 
ChangeLog entry, and minor comment fixes

6 years agoAdd variable len pkcs1-sec decoding function
Simo Sorce [Mon, 12 Nov 2018 18:54:47 +0000 (13:54 -0500)] 
Add variable len pkcs1-sec decoding function

add a side-channel silent pkcs1 decoding function for use in older
APIs.

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoTweak valgrind marking is rsa_sec_decrypt tests.
Niels Möller [Sun, 25 Nov 2018 15:23:06 +0000 (16:23 +0100)] 
Tweak valgrind marking is rsa_sec_decrypt tests.

* testsuite/rsa-sec-decrypt-test.c (rsa_decrypt_for_test): Tweak
valgrind marking, and document potential leakage of lowest and
highest bits of p and q.

6 years agoAvoid calls to mpz_sizeinbase on RSA private key.
Niels Möller [Sun, 25 Nov 2018 15:10:11 +0000 (16:10 +0100)] 
Avoid calls to mpz_sizeinbase on RSA private key.

* rsa-sec-compute-root.c (_rsa_sec_compute_root): Avoid calls to
mpz_sizeinbase, since that potentially leaks most significant bits
of private key parameters a and b.

6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 15:05:40 +0000 (16:05 +0100)] 
ChangeLog for previous change.

6 years agoUnit test for rsa_sec_decyrpt
Simo Sorce [Mon, 15 Oct 2018 20:01:52 +0000 (16:01 -0400)] 
Unit test for rsa_sec_decyrpt

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 10:14:26 +0000 (11:14 +0100)] 
ChangeLog for previous change.

6 years agoAdd rsa_sec_decrypt as side-channel silent variant
Simo Sorce [Wed, 10 Oct 2018 20:15:49 +0000 (16:15 -0400)] 
Add rsa_sec_decrypt as side-channel silent variant

Use side-channel silent RSA root function as well as PKCS1 padding
functions.
This variant accepts only a fixed length message, and returns error
if the pkcs1 padding returns a different length message.
The buffer is always left unchanged on error so that a TLS
implementation can pre-initialize it with a random key to use on
decoding error.

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agopkcs1-sec-decrypt-test.c: Fix valgrind marking of return value.
Niels Möller [Sun, 25 Nov 2018 09:38:23 +0000 (10:38 +0100)] 
pkcs1-sec-decrypt-test.c: Fix valgrind marking of return value.

6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 09:37:22 +0000 (10:37 +0100)] 
ChangeLog for previous change.

6 years agoUnit test for pkcs1-sec-decrypt
Simo Sorce [Tue, 23 Oct 2018 22:14:30 +0000 (18:14 -0400)] 
Unit test for pkcs1-sec-decrypt

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 09:29:02 +0000 (10:29 +0100)] 
ChangeLog for previous change.

6 years agoAdd mpn_get_base256
Simo Sorce [Mon, 12 Nov 2018 18:59:06 +0000 (13:59 -0500)] 
Add mpn_get_base256

Converts limbs to uint8_t buffer without conditional jumps.

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoChangeLog for previous change.
Niels Möller [Sun, 25 Nov 2018 09:22:38 +0000 (10:22 +0100)] 
ChangeLog for previous change.

6 years agoAdd side-channel silent pkcs1 decoding function
Simo Sorce [Thu, 8 Nov 2018 19:38:12 +0000 (14:38 -0500)] 
Add side-channel silent pkcs1 decoding function

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoChangeLog for previous change.
Niels Möller [Sat, 24 Nov 2018 10:44:01 +0000 (11:44 +0100)] 
ChangeLog for previous change.

6 years agoAdd a side-channel silent conditional memcpy
Simo Sorce [Mon, 15 Oct 2018 19:02:50 +0000 (15:02 -0400)] 
Add a side-channel silent conditional memcpy

Originally from Niels, with minor changes to avoid compiler warnings.

6 years agoChangeLog entries, minor comment and spacing fixes
Niels Möller [Sat, 24 Nov 2018 10:27:39 +0000 (11:27 +0100)] 
ChangeLog entries, minor comment and spacing fixes

6 years agoUse side-channel silent root for rsa signatures
Simo Sorce [Thu, 8 Nov 2018 16:59:48 +0000 (11:59 -0500)] 
Use side-channel silent root for rsa signatures

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoChangeLog entry and comment fixes.
Niels Möller [Sat, 24 Nov 2018 09:43:35 +0000 (10:43 +0100)] 
ChangeLog entry and comment fixes.

6 years agoAdd side-channel silent RSA root function
Simo Sorce [Thu, 8 Nov 2018 16:15:59 +0000 (11:15 -0500)] 
Add side-channel silent RSA root function

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoChangeLog for previous change.
Niels Möller [Sat, 24 Nov 2018 09:28:42 +0000 (10:28 +0100)] 
ChangeLog for previous change.

6 years agoAdd convenience macro for size calculation
Simo Sorce [Thu, 8 Nov 2018 19:47:13 +0000 (14:47 -0500)] 
Add convenience macro for size calculation

Returns number of limbs needed to contain N bytes long number.

Signed-off-by: Simo Sorce <simo@redhat.com>
6 years agoInitial NEWS entries for nettle-3.4.1.
Niels Möller [Sat, 24 Nov 2018 09:11:39 +0000 (10:11 +0100)] 
Initial NEWS entries for nettle-3.4.1.

6 years agoBump version numbers for nettle-3.4.1.
Niels Möller [Sat, 24 Nov 2018 09:09:31 +0000 (10:09 +0100)] 
Bump version numbers for nettle-3.4.1.

* configure.ac: Bump package version to 3.4.1.
(LIBNETTLE_MINOR): Bump library version to 6.5.
(LIBHOGWEED_MINOR): Bump library version to 4.5.

6 years agoAdd "fall through" comment.
Niels Möller [Tue, 16 Jan 2018 21:50:28 +0000 (22:50 +0100)] 
Add "fall through" comment.

(cherry picked from commit c4a814d77d475c474182e3e7051e4ac304e3c9e8)

6 years agoCopy .gitlab-ci.yml from master branch
Niels Möller [Mon, 19 Nov 2018 20:24:29 +0000 (21:24 +0100)] 
Copy .gitlab-ci.yml from master branch

6 years agoFix quoting in autoconf ifunc test
Dmitry Eremin-Solenikov [Wed, 13 Jun 2018 09:41:40 +0000 (12:41 +0300)] 
Fix quoting in autoconf ifunc test

* aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that
  AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
(cherry picked from commit e07e5605b3da65e07c7fe5fcf1ce3b050595d1b5)

6 years agotestsuite/symbols-test: Exclude ____chkstk_darwin symbols.
Dominyk Tiller [Sun, 17 Jun 2018 17:20:09 +0000 (19:20 +0200)] 
testsuite/symbols-test: Exclude ____chkstk_darwin symbols.

These are produced by Apple's Xcode 10 compiler.

(cherry picked from commit f3e2607fce0c6da41eb1d9ee89b9535d4abec7be)

6 years agoFix link failure for pss-mgf1-test, in non-hogweed builds.
Niels Möller [Sun, 18 Feb 2018 09:18:00 +0000 (10:18 +0100)] 
Fix link failure for pss-mgf1-test, in non-hogweed builds.

(cherry picked from commit c5fc9131b13d53b07b7aa371f30df8621cf2abb8)

6 years agotools/pkcs1-conv.c: Add missing break statements.
Niels Möller [Tue, 16 Jan 2018 21:49:37 +0000 (22:49 +0100)] 
tools/pkcs1-conv.c: Add missing break statements.

(cherry picked from commit 20c7ba59e2cb54f1bec7d679dbdbe00c42bdd190)

6 years agoAvoid cast between incompatible function types.
Niels Möller [Thu, 9 Aug 2018 18:54:18 +0000 (20:54 +0200)] 
Avoid cast between incompatible function types.

(cherry picked from commit 71f68cc45a269b206fc996309ef026f39d5af3df)

6 years agoAdd missing includes of stdlib.h.
Niels Möller [Wed, 10 Oct 2018 17:16:40 +0000 (19:16 +0200)] 
Add missing includes of stdlib.h.

(cherry picked from commit 7b4d6de8044e73849c2f24ce0322ae3fc48765a6)

6 years agodes-compat.c: Change length argument type from uint32_t to size_t.
Niels Möller [Thu, 9 Aug 2018 18:27:57 +0000 (20:27 +0200)] 
des-compat.c: Change length argument type from uint32_t to size_t.

(cherry picked from commit f3bbc422efed4149b5661e064360ee678b23113a)

6 years agoAdd benchmarking of RSA signatures with blinding
Niels Möller [Sat, 17 Nov 2018 13:23:06 +0000 (14:23 +0100)] 
Add benchmarking of RSA signatures with blinding

6 years agoctr16: fix encryption if src == dst
Dmitry Eremin-Solenikov [Wed, 10 Oct 2018 17:26:25 +0000 (19:26 +0200)] 
ctr16: fix encryption if src == dst