]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Dmitry Eremin-Solenikov [Sat, 28 Sep 2019 18:40:30 +0000 (21:40 +0300)]
lib/ecc: add documentation for GOST-related curves
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Tue, 7 May 2019 12:24:53 +0000 (15:24 +0300)]
lib: define more GOST curves
Declare GOST curves from GOST R 34.10-2001 and GOST R 34.10-2012 (test
curves) and GOST curves defined by TC26 itself.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Daiki Ueno [Sun, 6 Oct 2019 08:14:19 +0000 (08:14 +0000)]
Merge branch 'tmp-iov-fixes' into 'master'
gnutls_aead_cipher_{en,de}cryptv2: write back cached data to buffers
See merge request gnutls/gnutls!1085
Daiki Ueno [Tue, 1 Oct 2019 16:15:19 +0000 (18:15 +0200)]
gnutls_aead_cipher_{en,de}cryptv2: write back cached data to buffers
Previously, those functions failed to write the output to the buffers
if the buffer length is not multiple of cipher block size. This makes
sure that the cached data is always flushed.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Tue, 1 Oct 2019 16:14:48 +0000 (18:14 +0200)]
iov: add _gnutls_iov_iter_sync to write back cached data to iov
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 3 Oct 2019 08:34:18 +0000 (10:34 +0200)]
iov: _gnutls_iov_iter_next: return bytes instead of blocks
This eliminates the need of special handling of final block. Also
adds more tests in exceptional cases.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Sat, 5 Oct 2019 01:27:01 +0000 (03:27 +0200)]
NEWS: added entry for 3.6.11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 5 Oct 2019 01:25:19 +0000 (01:25 +0000)]
Merge branch 'tmp_gnutls-cli/srv_rawpk_support' into 'master'
Support for raw public keys for gnutls-cli and gnutls-serv
See merge request gnutls/gnutls!1059
Tom Vrancken [Fri, 4 Oct 2019 18:50:19 +0000 (20:50 +0200)]
Updated NEWS to reflect the added raw public-key handling functionality for gnutls-cli/serv tools.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Tom Vrancken [Mon, 30 Sep 2019 19:22:59 +0000 (21:22 +0200)]
Added functional regression tests for rawpk functionality in gnutls-cli and gnutls-serv.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Tom Vrancken [Tue, 27 Aug 2019 15:10:04 +0000 (17:10 +0200)]
Implemented raw public key support for gnutls-serv application.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Tom Vrancken [Mon, 26 Aug 2019 15:12:40 +0000 (17:12 +0200)]
Implemented raw public key support for gnutls-cli application.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Tim Rühsen [Wed, 2 Oct 2019 12:56:56 +0000 (12:56 +0000)]
Merge branch 'fix-gost-ifdef' into 'master'
nettle/mac: add missing ifdef
See merge request gnutls/gnutls!1083
Dmitry Eremin-Solenikov [Wed, 2 Oct 2019 11:47:44 +0000 (14:47 +0300)]
nettle/mac: add missing ifdef
Add an ifdef guarding gost28147 include.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Wed, 2 Oct 2019 11:20:15 +0000 (11:20 +0000)]
Merge branch 'gost-iana' into 'master'
lib/algorithms: add AID values assigned by IANA
See merge request gnutls/gnutls!1077
Tim Rühsen [Tue, 1 Oct 2019 09:03:44 +0000 (09:03 +0000)]
Merge branch 'tmp-
20190929 -junk-from-renamed-test' into 'master'
cipher-alignment: migrate LDADD/CFLAGS after rename
See merge request gnutls/gnutls!1082
Andreas Metzler [Sun, 29 Sep 2019 16:55:18 +0000 (18:55 +0200)]
cipher-alignment: migrate LDADD/CFLAGS after rename
Test was renamed from mini-alignment to cipher-alignment.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Nikos Mavrogiannopoulos [Sun, 29 Sep 2019 10:24:02 +0000 (12:24 +0200)]
bumped versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 28 Sep 2019 21:48:43 +0000 (21:48 +0000)]
Merge branch 'tmp-asm-update-32' into 'master'
Regenerate asm files with -fPIC
Closes #818
See merge request gnutls/gnutls!1081
Nikos Mavrogiannopoulos [Sat, 28 Sep 2019 21:14:04 +0000 (21:14 +0000)]
Merge branch 'tmp-no-pkcs8-text' into 'master'
certtool: ensure that PKCS#8 file does not contain key description
Closes #840
See merge request gnutls/gnutls!1076
Nikos Mavrogiannopoulos [Sat, 28 Sep 2019 19:25:25 +0000 (21:25 +0200)]
.gitlab-ci.yml: run pic-check on i686-linux-gnu to catch wrong assembly
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Andreas Metzler [Sat, 28 Sep 2019 12:28:12 +0000 (14:28 +0200)]
Regenerate asm files with -fPIC
CRYPTOGAMS' perl-scripts can produce different output if -fPIC is passed
as option. Set -fPIC for the same files as openssl does.
Closes #818
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Nikos Mavrogiannopoulos [Sat, 28 Sep 2019 10:42:12 +0000 (12:42 +0200)]
certtool: ensure that PKCS#8 file does not contain key description
Resolves: #840
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Dmitry Eremin-Solenikov [Sat, 28 Sep 2019 18:24:56 +0000 (18:24 +0000)]
Merge branch 'gost-split-1' into 'master'
GOST-CNT split, part 1
See merge request gnutls/gnutls!1072
Dmitry Eremin-Solenikov [Sat, 28 Sep 2019 18:23:17 +0000 (21:23 +0300)]
NEWS: document previous changes [ci skip]
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Sat, 28 Sep 2019 17:43:04 +0000 (17:43 +0000)]
Merge branch 'gost-attrs' into 'master'
x509: add support for Russian extensions defined for qualified certificate
See merge request gnutls/gnutls!1075
Nikos Mavrogiannopoulos [Sat, 28 Sep 2019 15:38:30 +0000 (15:38 +0000)]
Merge branch 'kx-neg-verbose' into 'master'
tests: add verbose logging to server-kx-neg tests
See merge request gnutls/gnutls!1078
Nikos Mavrogiannopoulos [Sat, 28 Sep 2019 15:27:18 +0000 (15:27 +0000)]
Merge branch 'tmp-ocsp-fixes' into 'master'
ocsp: test suite and doc improvements
Closes #836
See merge request gnutls/gnutls!1066
Dmitry Eremin-Solenikov [Fri, 2 Aug 2019 10:55:18 +0000 (13:55 +0300)]
tests: add verbose logging to server-kx-neg tests
Add support for verbose logging to tls*-server-kx-neg tests.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Tue, 19 Jun 2018 14:42:53 +0000 (17:42 +0300)]
lib/algorithms: add AID values assigned by IANA
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Fri, 27 Sep 2019 14:00:29 +0000 (17:00 +0300)]
x509: add support for Russian extensions defined for qualified certificate
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Sun, 1 Sep 2019 08:05:35 +0000 (11:05 +0300)]
crypto-selftests: add CNT and IMIT self tests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Thu, 14 Jun 2018 12:37:20 +0000 (15:37 +0300)]
nettle: provide GOST 28147-89 IMIT MAC support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Thu, 14 Jun 2018 12:36:55 +0000 (15:36 +0300)]
nettle: provide GOST 28147-89 CNT mode support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Daiki Ueno [Fri, 27 Sep 2019 09:58:33 +0000 (09:58 +0000)]
Merge branch 'tmp-supported-versions' into 'master'
ext/supported_versions: reorder client precedence if necessary
Closes #837
See merge request gnutls/gnutls!1074
Daiki Ueno [Thu, 26 Sep 2019 14:45:25 +0000 (16:45 +0200)]
ext/supported_versions: reorder client precedence if necessary
If the client advertises TLS < 1.2 before TLS 1.3 and the server is
configured with TLS 1.3 enabled, the server should select TLS 1.3;
otherwise the client will disconnect when seeing downgrade sentinel.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Thu, 26 Sep 2019 11:37:09 +0000 (11:37 +0000)]
Merge branch 'tmp-fix-session-get2' into 'master'
gnutls_session_get_data2: fix operation without a timeout callback
Closes #823
See merge request gnutls/gnutls!1068
Nikos Mavrogiannopoulos [Wed, 25 Sep 2019 04:23:22 +0000 (06:23 +0200)]
gnutls_session_get_data2: fix operation without a timeout callback
When TLS1.3 was introduced, gnutls_session_get_data2 was modified
to assume that the callbacks set included the timeout one which was
not previously necessary except for some special cases. This corrects
that issue and makes sure that gnutls_session_get_data2() does not
fail (but not necessarily succeed), if that timeout callback is not
set.
Resolves: #823
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 25 Sep 2019 04:18:48 +0000 (06:18 +0200)]
_gnutls_io_check_recv: added newline to error message
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 23 Sep 2019 21:23:26 +0000 (21:23 +0000)]
Merge branch 'tmp-update-nettle-compat' into 'master'
fix nettle 3.5 issues/warnings
Closes #835
See merge request gnutls/gnutls!1067
Nikos Mavrogiannopoulos [Mon, 23 Sep 2019 19:42:14 +0000 (21:42 +0200)]
tests: cipher-alignment: ensure cipher registration
That is, ensure that the registered cipher is called at least
once in the program. That is, to make this test fail if the registration
API ever become deprecated/no-op.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 23 Sep 2019 19:11:53 +0000 (21:11 +0200)]
tests: mini-alignment moved to modern nettle API
That is, it no longer uses the deprecated API, and it is also
removed to cipher-alignment for clarity.
Resolves: #835
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 23 Sep 2019 19:05:48 +0000 (21:05 +0200)]
nettle: use nettle_get_secpp* consistently
We already depend on nettle 3.4.1 which provides that symbol,
ensure that we use it consistently.
Relates: #835
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 20 Sep 2019 20:09:39 +0000 (22:09 +0200)]
Updates in OCSP status response related documentation
gnutls_certificate_set_ocsp_status_request_file2: corrected documentation
This corrects the documented return code in gnutls_certificate_set_ocsp_status_request_file2
and the applicability of gnutls_ocsp_status_request_is_checked.
Resolves: #836
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 20 Sep 2019 19:04:09 +0000 (21:04 +0200)]
tests: added server side OCSP check
This checks whether gnutls_ocsp_status_request_is_checked() is functional
on server-side verification.
Relates: #829
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 20 Sep 2019 18:57:51 +0000 (20:57 +0200)]
tests: added server-side verification test
This tests gnutls_certificate_verify_peers2() operation in server
side.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 19 Sep 2019 19:26:25 +0000 (21:26 +0200)]
gnutls_ocsp_status_request_is_checked: added tests in client side
This ensures that this function has functional tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 20 Sep 2019 15:33:10 +0000 (15:33 +0000)]
Merge branch 'tmp-pkcs11-mock' into 'master'
pkcs11-mock: updated license based on upstream project [ci skip]
See merge request gnutls/gnutls!1065
Nikos Mavrogiannopoulos [Mon, 16 Sep 2019 13:03:41 +0000 (15:03 +0200)]
pkcs11-mock: updated license based on upstream project [ci skip]
Based on the relicense of the original project:
https://github.com/Pkcs11Interop/pkcs11-mock
Applied in commit:
8751256956e414c1b0a30414831f5083afbf64bf
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Daiki Ueno [Mon, 16 Sep 2019 15:09:15 +0000 (15:09 +0000)]
Merge branch 'wip-guile-3.0' into 'master'
Add support for Guile 3.0
See merge request gnutls/gnutls!1020
Ludovic Courtès [Sat, 1 Jun 2019 14:54:47 +0000 (16:54 +0200)]
guile: Add support for Guile 3.0.
* configure.ac: Add 3.0 to 'GUILE_PKG', as well as the
previously-supported versions.
* doc/gnutls-guile.texi (Guile Preparations): Update list of supported
versions.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Ludovic Courtès [Sat, 1 Jun 2019 14:52:34 +0000 (16:52 +0200)]
doc: Run guile with '-q'.
This makes sure we don't load the user's ~/.guile.
* doc/Makefile.am (GUILE_FOR_BUILD): Pass '-q'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Daiki Ueno [Mon, 16 Sep 2019 11:17:41 +0000 (11:17 +0000)]
Merge branch 'wip-guile-include-m4-macros' into 'master'
maint: Include Guile's M4 macros.
See merge request gnutls/gnutls!1061
Nikos Mavrogiannopoulos [Fri, 13 Sep 2019 12:14:42 +0000 (12:14 +0000)]
Merge branch 'tmp-interop-old-gnutls' into 'master'
Do not forbid excess random padding in TLS1.x CBC ciphersuites
Closes #811
See merge request gnutls/gnutls!1054
Nikos Mavrogiannopoulos [Thu, 12 Sep 2019 13:21:55 +0000 (15:21 +0200)]
tlsfuzzer: enable atypical padding check
The atypical padding check is complementary to the existing
GnuTLS 2.12.x interop test.
This commit also upgrades to the latest version, and adds new TLS1.3
tests as well.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Daiki Ueno [Thu, 12 Sep 2019 11:00:25 +0000 (11:00 +0000)]
Merge branch 'tmp-decr-len' into 'master'
gnutls_int.h: make DECR_LEN neutral to signedness
See merge request gnutls/gnutls!1056
Daiki Ueno [Thu, 8 Aug 2019 16:04:18 +0000 (18:04 +0200)]
lib/*: remove unnecessary cast to ssize_t
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 8 Aug 2019 16:02:08 +0000 (18:02 +0200)]
gnutls_int.h: make DECR_LEN neutral to signedness
DECR_LEN was previously implemented in a way that it first decrements
the given length and then checks whether the result is negative. This
requires the caller to properly coerce the length argument to a signed
integer, before invoking the macro.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Wed, 11 Sep 2019 09:24:17 +0000 (11:24 +0200)]
.gitlab-ci.yml: bump configure cache version
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Tue, 10 Sep 2019 11:50:45 +0000 (13:50 +0200)]
.gitlab-ci.yml: export guile related envvars for doc-dist.Fedora
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Dmitry Eremin-Solenikov [Fri, 6 Sep 2019 19:08:36 +0000 (19:08 +0000)]
Merge branch 'fix-priority-setting' into 'master'
priority: fix loop which removes systemwide disabled KX algos
See merge request gnutls/gnutls!1064
Dmitry Eremin-Solenikov [Fri, 6 Sep 2019 19:08:19 +0000 (19:08 +0000)]
Merge branch 'fix-cli-debug' into 'master'
gnutls-cli-debug: fix early break for no version supported check
See merge request gnutls/gnutls!1063
Nikos Mavrogiannopoulos [Fri, 6 Sep 2019 06:36:04 +0000 (08:36 +0200)]
tests: check interoperability testing with gnutls 2.12.x and SHA256
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 3 Aug 2019 19:51:58 +0000 (21:51 +0200)]
_gnutls_epoch_set_keys: do not forbid random padding in TLS1.x CBC ciphersuites
Since some point in 3.6.x we updated the calculation of maximum record size,
however that did not include the possibility of random record padding available
for CBC ciphersuites which exceeds the maximum. This commit allows for larger
sizes for these ciphersuites to account for random padding as applied by
gnutls 2.12.x.
Resolves: #811
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Ludovic Courtès [Sat, 20 Jul 2019 14:13:02 +0000 (16:13 +0200)]
.gitlab-ci.yml: minimal.Fedora.x86_64: Pass '--disable-guile' the 2nd time as well.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Ludovic Courtès [Sat, 20 Jul 2019 14:08:48 +0000 (16:08 +0200)]
.gitlab-ci.yml: doc-dist.Fedora: Pass "GUILE", "GUILD", and "guile_snarf" to 'configure'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Ludovic Courtès [Sat, 31 Aug 2019 14:38:13 +0000 (16:38 +0200)]
maint: Include Guile's M4 macros.
This ensures 'GUILE_PKG' & co. behaves as we want. Previously we had
problem in CI when using 'guile.m4' coming from potentially old distro
packages, as discussed in issue !1020:
https://gitlab.com/gnutls/gnutls/merge_requests/1020#note_194443890
* m4/guile.m4: New file, from Guile's 'stable-2.2' branch,
commit
9846178c69445142ef0b9432417453d2d4de6635 .
* .x-sc_prohibit_test_minus_ao: New file.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Dmitry Eremin-Solenikov [Thu, 5 Sep 2019 08:36:27 +0000 (11:36 +0300)]
priority: fix loop which removes systemwide disabled KX algos
Fix c&p error in KX-removal loop.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Nikos Mavrogiannopoulos [Wed, 4 Sep 2019 11:45:05 +0000 (11:45 +0000)]
Merge branch 'tmp_rawpk_fuzzing' into 'master'
Raw public key fuzzing tests
Closes #687
See merge request gnutls/gnutls!1062
Nikos Mavrogiannopoulos [Wed, 4 Sep 2019 11:23:25 +0000 (11:23 +0000)]
Merge branch 'wip-certificate-status' into 'master'
guile: Update the list of certificate status values.
See merge request gnutls/gnutls!1060
Tom Vrancken [Sun, 1 Sep 2019 11:50:35 +0000 (13:50 +0200)]
Added initial corpora for rawpk client and server fuzzers.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Tom Vrancken [Sun, 1 Sep 2019 11:49:59 +0000 (13:49 +0200)]
Implemented server rawpk fuzzer.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Tom Vrancken [Sun, 1 Sep 2019 11:49:40 +0000 (13:49 +0200)]
Implemented client rawpk fuzzer.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Dmitry Eremin-Solenikov [Mon, 2 Sep 2019 13:34:08 +0000 (16:34 +0300)]
gnutls-cli-debug: fix early break for no version supported check
Currently gnutls-cli-debug code hardodes index of tests, after which it
will check if any known protocols (SSL 3.0/TLS1.[0123]) are supported by
the server. However this number is hardcoded and thus easy to break.
This is exactly what happened after adding %ALLOW_SMALL_RECORDS check.
Two tests were added in front of tests lists without updating this
index.
So let's make this check robust by adding another test which will return
fatal error if no known protocols are supported. While we are at it,
also simplify tests loop by removing internal loop completely and
controlling opening/closing a socket with a flag.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Nikos Mavrogiannopoulos [Sat, 3 Aug 2019 19:32:47 +0000 (21:32 +0200)]
tests: added interoperability test with gnutls 2.12.x
This enables this test in debian build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Ludovic Courtès [Sat, 31 Aug 2019 14:33:33 +0000 (16:33 +0200)]
guile: Update the list of certificate status values.
* guile/modules/gnutls/build/enums.scm (%certificate-status-enum): Add
'gnutls_certificate_status_t' values that were missing.
* guile/src/core.c (scm_gnutls_peer_certificate_status): Add
'MATCH_STATUS' clauses to handle them.
* guile/modules/gnutls.in: Export them.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Daiki Ueno [Wed, 14 Aug 2019 04:23:28 +0000 (04:23 +0000)]
Merge branch 'mcatanzaro/typo' into 'master'
Fix typo in gnutls_db_set_cache_expiration() docs
See merge request gnutls/gnutls!1057
Michael Catanzaro [Tue, 13 Aug 2019 19:55:19 +0000 (14:55 -0500)]
Fix typo in gnutls_db_set_cache_expiration() docs
21600 seconds is six hours.
Signed-off-by: Michael Catanzaro <mcatanzaro@gnome.org>
Daiki Ueno [Fri, 9 Aug 2019 13:35:57 +0000 (13:35 +0000)]
Merge branch 'tmp-encryptv2' into 'master'
crypto-api: add gnutls_aead_cipher_{en,de}cryptv2
Closes #718
See merge request gnutls/gnutls!1052
Daiki Ueno [Fri, 2 Aug 2019 05:40:44 +0000 (07:40 +0200)]
crypto-api: add gnutls_aead_cipher_{en,de}cryptv2
This adds an in-place equivalent of gnutls_aead_cipher_encrypt() and
gnutls_aead_cipher_decrypt(), that works on data buffers.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 1 Aug 2019 16:13:38 +0000 (18:13 +0200)]
crypto-api: use giovec_t iterator interface for aead_encryptv
This replaces the macros AUTH_UPDATE and ENCRYPT used in
gnutls_aead_cipher_encryptv() with the iov_iter interface.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 1 Aug 2019 15:41:45 +0000 (17:41 +0200)]
iov: add iterator interface for giovec_t
This adds an iterator interface over giovec_t array, extracting a
fixed sized block.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 8 Aug 2019 17:24:30 +0000 (17:24 +0000)]
Merge branch 'tmp-deterministic-ecdsa' into 'master'
pk: implement deterministic ECDSA/DSA for provable signing
Closes #94
See merge request gnutls/gnutls!1051
Daiki Ueno [Wed, 7 Aug 2019 13:55:44 +0000 (15:55 +0200)]
nettle: prohibit deterministic ECDSA/DSA under FIPS except selftests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Mon, 5 Aug 2019 13:21:55 +0000 (15:21 +0200)]
nettle: enable deterministic ECDSA/DSA during FIPS selftests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Mon, 29 Jul 2019 12:01:11 +0000 (14:01 +0200)]
pk: implement deterministic ECDSA/DSA
This exposes the deterministic ECDSA/DSA functionality through the
GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE flag.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Wed, 7 Aug 2019 12:37:00 +0000 (14:37 +0200)]
privkey_sign_prehashed: remove unused argument
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Mon, 29 Jul 2019 13:10:51 +0000 (15:10 +0200)]
privkey_sign_raw_data: remove unnecessary local variable
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Mon, 29 Jul 2019 12:00:30 +0000 (14:00 +0200)]
nettle: add functions for deterministic ECDSA/DSA
This adds functions to perform deterministic ECDSA/DSA, namely
_gnutls_{ecdsa,dsa}_compute_k(), which computes the k value according
to RFC 6979. The retrieved k value can be given to
nettle_{ecdsa,dsa}_sign() through a wrapper random function.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Aug 2019 14:00:17 +0000 (14:00 +0000)]
Merge branch 'tmp-fixes' into 'master'
Minor fixes in 3.6.9 release
Closes #810 and #812
See merge request gnutls/gnutls!1053
Nikos Mavrogiannopoulos [Tue, 6 Aug 2019 12:07:47 +0000 (12:07 +0000)]
Merge branch 'patch-1' into 'master'
Notes about Ubuntu specific software versions not available.
See merge request gnutls/gnutls!1029
Nikos Mavrogiannopoulos [Fri, 2 Aug 2019 19:57:40 +0000 (21:57 +0200)]
read_cpuid_vals: use __get_cpuid_count() only when available
This makes the functionality available on gcc 4.8.
Resolves: #812
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 2 Aug 2019 20:16:31 +0000 (22:16 +0200)]
src/Makefile.am: fix detection of .bak files
This fixes detection in a way to work in builds outside the
source directory.
Resolves: #810
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 2 Aug 2019 19:25:39 +0000 (21:25 +0200)]
configure: AS_HELP_STRING cannot print variables; don't try
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 3 Aug 2019 05:21:33 +0000 (05:21 +0000)]
Merge branch 'tmp-sign-cas' into 'master'
certtool: default to yes on signing certificates for CAs
See merge request gnutls/gnutls!1048
Karsten Ohme [Tue, 18 Jun 2019 12:17:14 +0000 (12:17 +0000)]
Notes about Ubuntu specific software versions not available.
Signed-off-by: Karsten Ohme <k_o_@users.sourceforge.net>
Tim Rühsen [Tue, 30 Jul 2019 07:38:50 +0000 (07:38 +0000)]
Merge branch 'tmp-missing-inih-license' into 'master'
Ship inih/LICENSE.txt in release tarball
See merge request gnutls/gnutls!1050
Andreas Metzler [Mon, 29 Jul 2019 15:47:42 +0000 (17:47 +0200)]
Ship inih/LICENSE.txt in release tarball
inih's license terms requires shipping a copy of the license when
redistributing the source.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Nikos Mavrogiannopoulos [Sat, 27 Jul 2019 19:20:53 +0000 (19:20 +0000)]
Merge branch 'mcatanzaro/#806' into 'master'
Improve documentation of gnutls_record_send()
Closes #806
See merge request gnutls/gnutls!1049
Michael Catanzaro [Fri, 26 Jul 2019 16:18:07 +0000 (11:18 -0500)]
Improve documentation of gnutls_record_send()
It's no longer required to retry this function with the same parameters
if you want to use gnutls_record_discard_queued().
Fixes #806
Signed-off-by: Michael Catanzaro <mcatanzaro@igalia.com>