summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* nettle: disable RSA blinding in FIPS selfteststmp-fips-leftoverDaiki Ueno2020-05-051-4/+33
| | | | | | | | Nettle's RSA signing, encryption and decryption functions still require randomness for blinding, so fallback to use a fixed buffer in selftests where entropy might not be available. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* Merge branch 'tmp-siv' into 'master'Dmitry Baryshkov2020-05-0419-1006/+396
|\ | | | | | | | | | | | | nettle: expose SIV-CMAC through the AEAD interface Closes #974 and #463 See merge request gnutls/gnutls!1238
| * nettle: expose SIV-CMAC through the AEAD interfaceDaiki Ueno2020-05-047-7/+223
| | | | | | | | | | | | | | | | | | This adds a couple of new cipher algorithms GNUTLS_CIPHER_AES_128_SIV and GNUTLS_CIPHER_AES_256_SIV, exposing nettle_siv_cmac_aes{128,256}* functions. Note that they can only used with the AEAD interface and authentication tags are prepended (not appended) to the ciphertext. Signed-off-by: Daiki Ueno <ueno@gnu.org>
| * nettle: vendor in SIV-CMAC implementationDaiki Ueno2020-05-043-1/+32
| | | | | | | | Signed-off-by: Daiki Ueno <ueno@gnu.org>
| * nettle: avoid manual backports of CFB8, CMAC, and XTSDaiki Ueno2020-05-0412-980/+124
| | | | | | | | Signed-off-by: Daiki Ueno <ueno@gnu.org>
| * nettle: rename import-chacha-from-nettle.sh to import-from-nettle.shDaiki Ueno2020-05-044-16/+16
| | | | | | | | | | | | This script will handle other backports except ECC as well. Signed-off-by: Daiki Ueno <ueno@gnu.org>
| * configure.ac: fix broken nettle_cfb8_decrypt detectionDaiki Ueno2020-05-041-3/+2
| | | | | | | | | | | | | | | | | | | | Given the fixed version of the function will be part of Nettle 3.6, use pkg-config --atleast-version instead of a manually comparison of the Nettle version. Fixes #974. Signed-off-by: Daiki Ueno <ueno@gnu.org>
* | Merge branch 'tmp-reproducible-build' into 'master'Tim Rühsen2020-05-043-6/+7
|\ \ | |/ |/| | | | | | | | | New make target 'update-copyright-year' Closes #980 See merge request gnutls/gnutls!1241
| * New make target 'update-copyright-year'tmp-reproducible-buildTim Rühsen2020-05-013-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | We don't want to automatically update the copyright year as this prevents reproducible builds. Instead, 'make update-copyright-year' has to be executed at the start of each new year and the changes have to be pushed. Closes #980 Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | Merge branch 'tmp-reproducible-sig-doc' into 'master'Daiki Ueno2020-05-041-3/+6
|\ \ | | | | | | | | | | | | | | | | | | doc: expand GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE description on RSA-PSS [ci skip] Closes #953 See merge request gnutls/gnutls!1242
| * | doc: expand GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE description on RSA-PSS [ci skip]tmp-reproducible-sig-docDaiki Ueno2020-04-301-3/+6
| |/ | | | | | | | | | | | | | | For RSA-PSS, this flag alone doens't fully enable reproducible signatures and the user needs to indicate the fact that a zero-length salt is used through SPKI upon verification. Signed-off-by: Daiki Ueno <ueno@gnu.org>
* | Merge branch 'tmp-nettle-vko' into 'master'Dmitry Baryshkov2020-04-3010-122/+40
|\ \ | |/ |/| | | | | gost: use gostdsa-vko from nettle 3.6rc2 See merge request gnutls/gnutls!1239
| * tests/prime-check: don't include gmp.hDmitry Baryshkov2020-04-301-1/+0
| | | | | | | | | | | | | | | | Do not include gmp.h header, <nettle/bignum.h> conflicts with it in mini-gmp configuration and includes this header on it's own in non-mini-gmp config. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * tests/srp: increase timeoutsDmitry Baryshkov2020-04-301-2/+2
| | | | | | | | | | | | | | SRP test times out if running on the GitLab CI with mini-gmp version of Nettle. Increase timeouts to let the test pass. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * CI: add nettle-mini-gmp testDmitry Baryshkov2020-04-301-0/+32
| | | | | | | | | | | | | | Wget/Wget2 OSS-Fuzz builders use mini-gmp version of nettle. Check that we do not break them occasionally. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * gost: use gostdsa-vko from nettle 3.6rc3Dmitry Baryshkov2020-04-285-118/+3
| | | | | | | | | | | | | | Now as we have upgraded Nettle to 3.6rc3 (which includes gostdsa_vko), use this function from imported nettle sources. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * nettle: update imported source to nettle 3.6rc3Dmitry Baryshkov2020-04-283-1/+3
|/ | | | | | | | Update imported nettle version to 3.6rc3. This will bring in updated gmp-glue code and a possiblity to use gostdsa-vko imported from nettle sources. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* Merge branch 'tmp-ext-name' into 'master'Daiki Ueno2020-04-249-0/+50
|\ | | | | | | | | gnutls_session_ext_register: keep track of extension name See merge request gnutls/gnutls!1224
| * gnutls_session_ext_register: keep track of extension nametmp-ext-nameDaiki Ueno2020-04-213-0/+12
| | | | | | | | | | | | | | | | | | | | | | Previously it discarded the name argument, and that was making the debug output awkward, e.g., running tests/tls-session-ext-register -v: client|<4>| EXT[0x9cdc20]: Preparing extension ((null)/242) for 'client hello' client|<4>| EXT[0x9cdc20]: Preparing extension ((null)/241) for 'client hello' client|<4>| EXT[0x9cdc20]: Sending extension (null)/241 (2 bytes) Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * gnutls_ext_get_name2: new functionDaiki Ueno2020-04-217-0/+38
| | | | | | | | | | | | | | | | This adds a generalized version of gnutls_ext_get_name, which can retrieve the name of the extension, even if it is registered per session. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | Merge branch 'tmp-check-soname' into 'master'Daiki Ueno2020-04-244-6/+53
|\ \ | | | | | | | | | | | | fips: check library soname during configure See merge request gnutls/gnutls!1231
| * | fips: check library soname during configuretmp-check-sonameDaiki Ueno2020-04-244-6/+53
|/ / | | | | | | | | | | | | | | | | | | | | | | Previously, we hard-coded the sonames of linked libraries for FIPS integrity checking. That required downstream packagers to manually adjust the relevant code in lib/fips.c, when a new interface version of the dependent libraries (nettle, gmp) becomes available and linked to libgnutls. This patch automates that process with the configure script. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | Merge branch 'tmp-update-gostdsa-vko' into 'master'Dmitry Baryshkov2020-04-214-29/+59
|\ \ | |/ |/| | | | | gost: update gostdsa_vko to follow Nettle See merge request gnutls/gnutls!1237
| * gost: update gostdsa_vko to follow NettleDmitry Baryshkov2020-04-214-29/+59
|/ | | | | | Update gostdsa_vko() following changes going to be accepted into Nettle. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* Merge branch 'tmp-no-auto-send-ticket' into 'master'Daiki Ueno2020-04-205-4/+326
|\ | | | | | | | | handshake-tls13: add session flag to disable sending session tickets See merge request gnutls/gnutls!1234
| * handshake-tls13: add session flag to disable sending session ticketstmp-no-auto-send-ticketDaiki Ueno2020-04-135-4/+326
| | | | | | | | | | | | | | | | | | While GnuTLS by default implicitly sends NewSessionTicket during handshake, application protocols like QUIC set a clear boundary between "in handshake" and "post handshake", and NST must be sent in the post handshake state. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | Merge branch 'tmp-fix-ecc-freebsd' into 'master'Dmitry Baryshkov2020-04-191-7/+15
|\ \ | | | | | | | | | | | | build: attempt to fix build issues on FreeBSD See merge request gnutls/gnutls!1236
| * | build: attempt to fix build issues on FreeBSDtmp-fix-ecc-freebsdDmitry Baryshkov2020-04-161-7/+15
| | | | | | | | | | | | | | | | | | | | | BSD sed does not like \n and \0 in string substitution. Workaround this by using sed magic. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* | | Merge branch 'tmp-xts-ig-a9' into 'master'Daiki Ueno2020-04-191-4/+48
|\ \ \ | |/ / |/| | | | | | | | xts: check key block according to FIPS-140-2 IG A.9 See merge request gnutls/gnutls!1233
| * | xts: check key blocks according to FIPS-140-2 IG A.9tmp-xts-ig-a9Daiki Ueno2020-04-141-4/+48
| | | | | | | | | | | | | | | | | | | | | | | | The implementation guidance suggests that a check of key1 != key2 should be done at any place before the keys are used: https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Module-Validation-Program/documents/fips140-2/FIPS1402IG.pdf Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | | Merge branch 'no-nettle-internal' into 'master'Dmitry Baryshkov2020-04-1531-5069/+499
|\ \ \ | |/ / |/| | | | | | | | Stop using Nettle and Hogweed internal symbols See merge request gnutls/gnutls!1235
| * | gitlab CI: when calling cppcheck ignore lib/nettle/ecc rather than ↵Dmitry Baryshkov2020-04-152-4/+12
| | | | | | | | | | | | | | | | | | lib/nettle/curve448 Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | gitlab-ci: add test for usage of nettle/hogweed internal symbolsDmitry Baryshkov2020-04-141-0/+1
| | | | | | | | | | | | | | | | | | Check that GnuTLS does not depend on Nettle/Hogweed internal symbols. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | nettle: vendor in poly1305 codeDmitry Baryshkov2020-04-142-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Nettle's poly1305 code ended up with internal symbol _poly1305_block in public header. This causes issues on Nettle version changes. Since those symbols are going to become nettle-internal, vendor in relevant source file. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | gost: import _nettle_write_le32 to stop using Nettle's internal symbolDmitry Baryshkov2020-04-143-1/+73
| | | | | | | | | | | | | | | | | | | | | Remove another dependency on nettle internal symbol by vendoring in _nettle_write_le32 code Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | nettle: use new imported source files for GOST DSADmitry Baryshkov2020-04-1426-5008/+304
| | | | | | | | | | | | | | | | | | | | | Provide GOST support using source files copied by script rather than manually crafted by me. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | build: import-curve448 -> import-eccDmitry Baryshkov2020-04-144-51/+51
| | | | | | | | | | | | | | | | | | | | | As the script now imports not just Curve448, but also gost code, rename the script, target directory and symbols to follow that. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | devel: modify curve448 script to import gost sourcesDmitry Baryshkov2020-04-131-13/+54
| | | | | | | | | | | | | | | | | | | | | Curve448 script already imports several ecc sources into GnuTLS tree. Modify it to also vendor in GOST-related ecc files. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | import-chacha: fix several additional symbol clashesDmitry Baryshkov2020-04-131-1/+3
| | | | | | | | | | | | | | | | | | | | | Fix sed script used to rename symbols to remove few additional symbols sitting in _nettle_FOO namespace. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | curve448: import write-le64.c which defines internal symbolDmitry Baryshkov2020-04-132-0/+3
| | | | | | | | | | | | Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
| * | import-curve448: fix several additional symbol clashesDmitry Baryshkov2020-04-131-1/+5
|/ / | | | | | | | | | | | | Fix sed script used to rename symbols to remove few additional symbols sitting in _nettle_FOO namespace. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* | Merge branch 'ftbfs20201024' into 'master'Nikos Mavrogiannopoulos2020-04-061-0/+11
|\ \ | | | | | | | | | | | | | | | | | | tests: Fix status-request-revoked after 2020-10-24 Closes #967 See merge request gnutls/gnutls!1230
| * | tests: Fix status-request-revoked after 2020-10-24Bernhard M. Wiedemann2020-04-051-0/+11
|/ / | | | | | | | | | | | | | | | | | | included certs expire 2020-10-24 so this test fails after that date. Fixes #967 This patch was done while working on reproducible builds for openSUSE. Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
* | Merge branch 'tmp-valgrind-memcheck' into 'master'Nikos Mavrogiannopoulos2020-04-053-3/+35
|\ \ | | | | | | | | | | | | build: use valgrind client request to detect undefined memory use See merge request gnutls/gnutls!1228
| * | build: use valgrind client request to detect undefined memory usetmp-valgrind-memcheckDaiki Ueno2020-04-043-3/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tightens the check introduced in ac2f71b892d13a7ab4cc39086eef179042c7e23c, by using the valgrind client request to explicitly mark the "uninitialized but initialization is needed before use" regions. With this patch and the fix (c01011c2d8533dbbbe754e49e256c109cb848d0d) reverted, you will see the following error when running dtls_hello_random_value under valgrind: $ valgrind ./dtls_hello_random_value testing: default ==520145== Conditional jump or move depends on uninitialised value(s) ==520145== at 0x4025F5: hello_callback (dtls_hello_random_value.c:90) ==520145== by 0x488BF97: _gnutls_call_hook_func (handshake.c:1215) ==520145== by 0x488C1AA: _gnutls_send_handshake2 (handshake.c:1332) ==520145== by 0x488FC7E: send_client_hello (handshake.c:2290) ==520145== by 0x48902A1: handshake_client (handshake.c:2908) ==520145== by 0x48902A1: gnutls_handshake (handshake.c:2740) ==520145== by 0x402CB3: client (dtls_hello_random_value.c:153) ==520145== by 0x402CB3: start (dtls_hello_random_value.c:317) ==520145== by 0x402EFE: doit (dtls_hello_random_value.c:331) ==520145== by 0x4023D4: main (utils.c:254) ==520145== Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | | Merge branch 'compare_dn' into 'master'Nikos Mavrogiannopoulos2020-04-056-15/+187
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Compare DNs by comparing their string representations Closes #553 See merge request gnutls/gnutls!1223
| * | | Compare DNs by comparing their string representationsPierre Ossman2020-04-035-4/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A binary comparison will not work in case the contents is the same but the ASN.1 type differ (e.g. PrintableString vs UTF8String). Such variations are permitted so we need to handle them. Signed-off-by: Pierre Ossman <ossman@cendio.se>
| * | | Properly compare DNs when checking sortingPierre Ossman2020-04-031-11/+2
|/ / / | | | | | | | | | | | | | | | | | | We might want to do other things than a simple memcmp() so make sure we're using the right helper when comparing DNs. Signed-off-by: Pierre Ossman <ossman@cendio.se>
* | | Merge branch 'tmp-libidn-simplify' into 'master'Nikos Mavrogiannopoulos2020-04-033-100/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | IDNA: require libidn2 2.0.0 Closes #832 See merge request gnutls/gnutls!1229
| * | | IDNA: require libidn2 2.0.0Nikos Mavrogiannopoulos2020-03-313-100/+10
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We require private symbols which dissapear at some point in IDN2 releases in order to support old versions of libidn2. Simplify the code by requiring only recent versions and avoid issues such as #832. Resolves: #832 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>