]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
8 years agoupdated auto-generated files
Nikos Mavrogiannopoulos [Mon, 9 Jul 2018 10:40:59 +0000 (12:40 +0200)] 
updated auto-generated files

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_priority_init2,gnutls_set_default_priority_append: introduced
Nikos Mavrogiannopoulos [Mon, 25 Jun 2018 08:36:18 +0000 (10:36 +0200)] 
gnutls_priority_init2,gnutls_set_default_priority_append: introduced

This allows enhancing the default priority with additional
options, allowing an application to introduce stricter (or weaker)
settings without requiring it to override all settings.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Sat, 7 Jul 2018 17:52:04 +0000 (19:52 +0200)] 
doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Sat, 7 Jul 2018 17:48:14 +0000 (19:48 +0200)] 
doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoconfigure: Fix progress message for --enable-tls13-support
Andreas Metzler [Sat, 7 Jul 2018 12:20:01 +0000 (14:20 +0200)] 
configure: Fix progress message for --enable-tls13-support

Signed-off-by: Andreas Metzler <ametzler@bebt.de>
8 years agotests: tls-fuzzer-alpn: operate on random port
Nikos Mavrogiannopoulos [Sat, 7 Jul 2018 08:21:51 +0000 (10:21 +0200)] 
tests: tls-fuzzer-alpn: operate on random port

This allows parallel run of the test with other tlsfuzzer tests.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoconfigure: added option --enable-tls13-support
Nikos Mavrogiannopoulos [Tue, 3 Jul 2018 06:49:06 +0000 (08:49 +0200)] 
configure: added option --enable-tls13-support

The new option enables TLS1.3 draft-28 support unconditionally.
Updated the test suite to run when TLS1.3 is enabled by default,
and added a CI run with TLS1.3 enabled.

Resolves #424

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years ago_gnutls_figure_common_ciphersuite: apply rfc7919 requirements only under TLS1.2
Nikos Mavrogiannopoulos [Tue, 3 Jul 2018 09:45:31 +0000 (11:45 +0200)] 
_gnutls_figure_common_ciphersuite: apply rfc7919 requirements only under TLS1.2

Under TLS1.3 there is no requirement to return insufficient security depending
on the FFDHE group negotiation.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agosupported_versions: do not parse in server side when TLS1.3 is disabled
Nikos Mavrogiannopoulos [Tue, 3 Jul 2018 07:06:27 +0000 (09:06 +0200)] 
supported_versions: do not parse in server side when TLS1.3 is disabled

This allows a server to negotiate older versions using the previous TLS
negotiation scheme.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoprotocols: bumped TLS1.3 protocol to draft-28
Nikos Mavrogiannopoulos [Tue, 3 Jul 2018 06:31:13 +0000 (08:31 +0200)] 
protocols: bumped TLS1.3 protocol to draft-28

Resolves #506

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: mini-record-timing: avoid warning for too large stack usage
Nikos Mavrogiannopoulos [Wed, 4 Jul 2018 08:08:06 +0000 (10:08 +0200)] 
tests: mini-record-timing: avoid warning for too large stack usage

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoMerge branch 'tmp-fix-rsae-negotiation' into 'master'
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 19:17:11 +0000 (19:17 +0000)] 
Merge branch 'tmp-fix-rsae-negotiation' into 'master'

sign_supports_cert_pk_algorithm: corrected check for RSAE-PSS

Closes #500

See merge request gnutls/gnutls!693

8 years agotlsfuzzer: updated to include RSA and RSA-PSS related tests
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 09:47:34 +0000 (11:47 +0200)] 
tlsfuzzer: updated to include RSA and RSA-PSS related tests

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agosign_supports_cert_pk_algorithm: corrected check for RSAE-PSS
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 06:32:52 +0000 (08:32 +0200)] 
sign_supports_cert_pk_algorithm: corrected check for RSAE-PSS

If the signature algorithm sets the `cert_pk` field, ignore the
`pk` field completely. Not doing that would make the RSAE signature
algorithms with RSA-PSS certificates which is against the intended
use of `cert_pk`.

Resolves #500

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotlsproxy: included but not as submodule
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 12:12:48 +0000 (14:12 +0200)] 
tlsproxy: included but not as submodule

This allows updating the example when necessary within the repository
and reduces the amount of external dependencies for CI.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotlsproxy: removed submodule
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 12:12:15 +0000 (14:12 +0200)] 
tlsproxy: removed submodule

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: introduced tests about crypto API failures on illegal use
Nikos Mavrogiannopoulos [Sun, 1 Jul 2018 19:03:28 +0000 (21:03 +0200)] 
tests: introduced tests about crypto API failures on illegal use

This ensures that any mistakes in using the crypto API are propagated
to the higher level calls, or result to an abort().

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agognutls_aead_cipher_encryptv: eliminate signed/unsigned warnings under x86
Nikos Mavrogiannopoulos [Sun, 1 Jul 2018 10:49:55 +0000 (12:49 +0200)] 
gnutls_aead_cipher_encryptv: eliminate signed/unsigned warnings under x86

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoaccelerated: error on the cases where the nettle API would have errored
Nikos Mavrogiannopoulos [Sun, 1 Jul 2018 20:00:09 +0000 (22:00 +0200)] 
accelerated: error on the cases where the nettle API would have errored

This ensures that illegal uses of the API would be propagated to
the higher levels.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agognutls_cipher_add_auth: propagate error codes
Nikos Mavrogiannopoulos [Sun, 1 Jul 2018 20:08:16 +0000 (22:08 +0200)] 
gnutls_cipher_add_auth: propagate error codes

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoMerge branch 'tmp-32-bit-time_t' into 'master'
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 12:09:57 +0000 (12:09 +0000)] 
Merge branch 'tmp-32-bit-time_t' into 'master'

tests: verify that certtool will fail with a 32-bit time_t

Closes #370

See merge request gnutls/gnutls!691

8 years agocerttool: properly print an int64_t value
Nikos Mavrogiannopoulos [Sun, 1 Jul 2018 09:27:48 +0000 (11:27 +0200)] 
certtool: properly print an int64_t value

Also included the gnulib inttype module for portability.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agocerttool: print information on time_t restrictions on failure
Nikos Mavrogiannopoulos [Sun, 1 Jul 2018 09:24:16 +0000 (11:24 +0200)] 
certtool: print information on time_t restrictions on failure

This informs the user of the tool why dates after 2038 cannot
be expressed on systems with a 32-bit time_t.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: verify that certtool operates as expected with dates after 2038
Nikos Mavrogiannopoulos [Sat, 30 Jun 2018 14:49:53 +0000 (16:49 +0200)] 
tests: verify that certtool operates as expected with dates after 2038

That is, whether it works with a time_t of 64-bit size, and fails
with a time_t of 32-bit size.

Resolves #370

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: check explicitly the size of time_t
Nikos Mavrogiannopoulos [Sun, 1 Jul 2018 10:39:28 +0000 (12:39 +0200)] 
tests: check explicitly the size of time_t

Previously we were disabling the 2038 tests on 32-bit systems,
but there can be 32-bit systems with a 64-bit time_t. Ensure
that we run the right tests.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: better guarding of variable SKIP_DATEFUDGE_CHECK
Nikos Mavrogiannopoulos [Sat, 30 Jun 2018 14:48:54 +0000 (16:48 +0200)] 
tests: better guarding of variable SKIP_DATEFUDGE_CHECK

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoMerge branch 'tmp-post-handshake-auth' into 'master'
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 10:07:21 +0000 (10:07 +0000)] 
Merge branch 'tmp-post-handshake-auth' into 'master'

post-handshake authentication improvements

Closes #490 and #489

See merge request gnutls/gnutls!687

8 years agotests: ignore PIPE signal on TLS1.3-related tests
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 19:31:43 +0000 (21:31 +0200)] 
tests: ignore PIPE signal on TLS1.3-related tests

This was inadvertently omitted and that could cause unexpected
issues when one of the peers would close the connection earlier
than expected.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: check for GNUTLS_E_GOT_APPLICATION_DATA on post-handshake auth
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 13:00:13 +0000 (15:00 +0200)] 
tests: check for GNUTLS_E_GOT_APPLICATION_DATA on post-handshake auth

That is, check whether GNUTLS_E_GOT_APPLICATION_DATA is received as
documented, and whether post-handshake auth can complete while this
is being sent.

Resolves #490

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agopost-handshake: return GNUTLS_E_GOT_APPLICATION_DATA as documented to
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 12:38:40 +0000 (14:38 +0200)] 
post-handshake: return GNUTLS_E_GOT_APPLICATION_DATA as documented to

Relates #490

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: introduced test for post-handshake auth + PSK
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 11:57:11 +0000 (13:57 +0200)] 
tests: introduced test for post-handshake auth + PSK

Relates #489

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotls13 handshake: allow certificate messages after handshake
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 12:19:02 +0000 (14:19 +0200)] 
tls13 handshake: allow certificate messages after handshake

This allows post-handshake authentication even when PSK
is negotiated.

Resolves #489

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_session_get_flags: introduced GNUTLS_SFLAGS_POST_HANDSHAKE_AUTH
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 11:41:13 +0000 (13:41 +0200)] 
gnutls_session_get_flags: introduced GNUTLS_SFLAGS_POST_HANDSHAKE_AUTH

This allows a server application to detect whether the client
would support post handshake authentication or not without initiating
via gnutls_reauth().

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls-serv: make --disable-client-cert and --require-client-cert options incompatible
Nikos Mavrogiannopoulos [Mon, 2 Jul 2018 06:10:45 +0000 (08:10 +0200)] 
gnutls-serv: make --disable-client-cert and --require-client-cert options incompatible

That is refuse to run when both options are specified.

Resolves #502

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: verify whether GNUTLS_TLS_VERSION_MAX is negotiated on default mode
Nikos Mavrogiannopoulos [Fri, 29 Jun 2018 20:40:27 +0000 (22:40 +0200)] 
tests: verify whether GNUTLS_TLS_VERSION_MAX is negotiated on default mode

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoMerge branch 'tmp-ci-cleanups' into 'master'
Nikos Mavrogiannopoulos [Fri, 29 Jun 2018 14:48:06 +0000 (14:48 +0000)] 
Merge branch 'tmp-ci-cleanups' into 'master'

Fixes + cleanups for .gitlab-ci.yml

See merge request gnutls/gnutls!690

8 years agoFixes + cleanups for .gitlab-ci.yml
Tim Rühsen [Fri, 29 Jun 2018 08:33:18 +0000 (10:33 +0200)] 
Fixes + cleanups for .gitlab-ci.yml

8 years agop11tool: remove duplicate branch
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 19:46:24 +0000 (21:46 +0200)] 
p11tool: remove duplicate branch

The GNUTLS_PKCS11_OBJ_ATTR_MATCH and GNUTLS_PKCS11_OBJ_ATTR_ALL
attributes are the same, so there is no need to handle them
separately.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoAdd strdup-posix gnulib module
Tim Rühsen [Tue, 26 Jun 2018 10:50:30 +0000 (12:50 +0200)] 
Add strdup-posix gnulib module

Some files in gl/tests won't build in environments without
strdup(), e.g. MinGW on Debian. The gnulib docs advise to
explicitly add the module.

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years agotestcompat-tls13-openssl: fix openssl interactions
Nikos Mavrogiannopoulos [Thu, 21 Jun 2018 09:29:19 +0000 (11:29 +0200)] 
testcompat-tls13-openssl: fix openssl interactions

 * Do not require certificate validation on tests where no certificate is sent
 * Rekey test performs data transfer after re-key

This introduces a dependency on the expect package for testing, and
updates openssl to address an issue in post-handshake auth interop
testing.

Resolves #488

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls-serv: when post-handshake auth is asked; require a certificate
Nikos Mavrogiannopoulos [Fri, 22 Jun 2018 12:14:07 +0000 (14:14 +0200)] 
gnutls-serv: when post-handshake auth is asked; require a certificate

This allows testing post-handshake authentication using gnutls-serv.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agokey update: corrected generation of keys
Nikos Mavrogiannopoulos [Thu, 21 Jun 2018 13:05:40 +0000 (15:05 +0200)] 
key update: corrected generation of keys

Resolves #485

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls-cli: wait for all server data prior to closing connection
Nikos Mavrogiannopoulos [Thu, 21 Jun 2018 06:46:04 +0000 (08:46 +0200)] 
gnutls-cli: wait for all server data prior to closing connection

This cleans-up the existing code which was disfunctional and
allows detecting errors which happen after we transmit data
to the server.

Relates #485

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years ago.gitignore: added new test executables
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 11:34:16 +0000 (13:34 +0200)] 
.gitignore: added new test executables

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: eliminated compiler warnings
Nikos Mavrogiannopoulos [Wed, 27 Jun 2018 11:27:39 +0000 (13:27 +0200)] 
tests: eliminated compiler warnings

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoUpdate .gitignore files according to bootstrap
Dmitry Eremin-Solenikov [Tue, 26 Jun 2018 13:02:45 +0000 (16:02 +0300)] 
Update .gitignore files according to bootstrap

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agosrc: fix regenerating autogen files if builddir = srcdir
Dmitry Eremin-Solenikov [Tue, 26 Jun 2018 12:22:49 +0000 (15:22 +0300)] 
src: fix regenerating autogen files if builddir = srcdir

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoMerge branch 'timespec-overflow2' into 'master'
Tim Rühsen [Tue, 26 Jun 2018 19:33:00 +0000 (19:33 +0000)] 
Merge branch 'timespec-overflow2' into 'master'

avoid more possible overflows when substracting timespecs

See merge request gnutls/gnutls!685

8 years agoconvert from milliseconds to timespec without loop
Rolf Eike Beer [Tue, 26 Jun 2018 13:18:36 +0000 (15:18 +0200)] 
convert from milliseconds to timespec without loop

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
8 years agouse timespec_sub_ms() instead of open coding it
Rolf Eike Beer [Tue, 26 Jun 2018 13:02:51 +0000 (15:02 +0200)] 
use timespec_sub_ms() instead of open coding it

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
8 years agoavoid overflow when substracting timespecs if rdtsc is not available
Rolf Eike Beer [Tue, 26 Jun 2018 12:59:54 +0000 (14:59 +0200)] 
avoid overflow when substracting timespecs if rdtsc is not available

This may still overflow on platforms where unsigned long is 32 bit (e.g. 32 bit
Un*x, any Windows) when the delta is more than 4 seconds.

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
8 years agolib/nettle/gost: support building with mini-nettle/mini-gmp
Dmitry Eremin-Solenikov [Tue, 26 Jun 2018 08:38:58 +0000 (11:38 +0300)] 
lib/nettle/gost: support building with mini-nettle/mini-gmp

Do not depend directly on gmp.h.

Closes: #497
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoavoid rounding errors and overflows when substracting timespecs
Rolf Eike Beer [Tue, 26 Jun 2018 07:39:19 +0000 (09:39 +0200)] 
avoid rounding errors and overflows when substracting timespecs

The current Unix time will cause overflows if multiplied with 1000, which could
lead to rounding errors afterwards. Do the substractions first so all numbers
stay small enough to fit into unsigned ints.

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
8 years agoMerge branch 'tmp-fix-fips-generation' into 'master'
Nikos Mavrogiannopoulos [Tue, 26 Jun 2018 10:36:32 +0000 (10:36 +0000)] 
Merge branch 'tmp-fix-fips-generation' into 'master'

wrap_nettle_pk_generate_keys: retry on provable key generation

Closes #283

See merge request gnutls/gnutls!681

8 years agowrap_nettle_pk_generate_keys: retry on provable key generation
Nikos Mavrogiannopoulos [Mon, 25 Jun 2018 10:30:55 +0000 (12:30 +0200)] 
wrap_nettle_pk_generate_keys: retry on provable key generation

This resolves issue with occasional failures under RSA key generation
in FIPS140-2 mode.

Resolves #283

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoMerge branch 'auto-sync-translations' into 'master'
Nikos Mavrogiannopoulos [Tue, 26 Jun 2018 07:08:30 +0000 (07:08 +0000)] 
Merge branch 'auto-sync-translations' into 'master'

Let ./bootstrap sync from translationproject.org

Closes #470

See merge request gnutls/gnutls!678

8 years agoLet ./bootstrap sync from translationproject.org
Tim Rühsen [Sat, 23 Jun 2018 13:11:17 +0000 (15:11 +0200)] 
Let ./bootstrap sync from translationproject.org

This makes manual updating of the translations obsolete.
From now on, builds and tarballs will always have the latest translations
included.

We should not forget to inform translationproject.org to update the
translations before a release. How to do that is described at
https://translationproject.org/html/maintainers.html (6. Announcing).

8 years agognutls_session_get_desc: fixed desc printing of custom groups
Nikos Mavrogiannopoulos [Tue, 26 Jun 2018 00:38:51 +0000 (02:38 +0200)] 
gnutls_session_get_desc: fixed desc printing of custom groups

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 25 Jun 2018 08:06:25 +0000 (10:06 +0200)] 
doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoaarch64: use getauxval() if available to discover cpu caps
Nikos Mavrogiannopoulos [Sun, 24 Jun 2018 19:46:15 +0000 (21:46 +0200)] 
aarch64: use getauxval() if available to discover cpu caps

This improves CPU detection by avoiding the parsing of
of a human-readable file and allows operation under debian
multilib qemu setup.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.gitlab-ci.yml: no need for submodule update on cross-builds
Nikos Mavrogiannopoulos [Sun, 24 Jun 2018 19:50:15 +0000 (21:50 +0200)] 
.gitlab-ci.yml: no need for submodule update on cross-builds

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.gitlab-ci.yml: use qemu for aarch64 testing
Nikos Mavrogiannopoulos [Mon, 18 Jun 2018 11:14:03 +0000 (13:14 +0200)] 
.gitlab-ci.yml: use qemu for aarch64 testing

This eliminates the need (and costs) to maintain a separate baremetal
system.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years ago.gitlab-ci.yml: corrected typo
Nikos Mavrogiannopoulos [Sun, 24 Jun 2018 06:27:00 +0000 (08:27 +0200)] 
.gitlab-ci.yml: corrected typo

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.gitlab-ci.yml: skip submodule initialization when not necessary
Nikos Mavrogiannopoulos [Sun, 24 Jun 2018 06:06:55 +0000 (08:06 +0200)] 
.gitlab-ci.yml: skip submodule initialization when not necessary

This prevents unnecessary download of submodules on CI.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.gitlab-ci.yml: updated x86 CI builds with better datefudge detection
Nikos Mavrogiannopoulos [Sun, 24 Jun 2018 04:51:14 +0000 (06:51 +0200)] 
.gitlab-ci.yml: updated x86 CI builds with better datefudge detection

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.gitlab-ci.yml: debian stretch build replaced by buster
Nikos Mavrogiannopoulos [Sun, 24 Jun 2018 04:58:37 +0000 (06:58 +0200)] 
.gitlab-ci.yml: debian stretch build replaced by buster

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Sat, 23 Jun 2018 17:38:26 +0000 (19:38 +0200)] 
doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Sat, 23 Jun 2018 17:35:13 +0000 (19:35 +0200)] 
doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoMerge branch 'gost-no-tls' into 'master'
Nikos Mavrogiannopoulos [Sat, 23 Jun 2018 16:54:03 +0000 (16:54 +0000)] 
Merge branch 'gost-no-tls' into 'master'

GOST certificates/PKCS#7/PKCS#12 support

See merge request gnutls/gnutls!654

8 years agotests: add PKCS#12 test script for GOST 28147-89-encrypted files
Dmitry Eremin-Solenikov [Fri, 15 Jun 2018 10:38:44 +0000 (13:38 +0300)] 
tests: add PKCS#12 test script for GOST 28147-89-encrypted files

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agocerttool: honour --hash option when generating PKCS#12 files
Dmitry Eremin-Solenikov [Fri, 15 Jun 2018 10:06:41 +0000 (13:06 +0300)] 
certtool: honour --hash option when generating PKCS#12 files

Use algorithm specified with --hash option when generating MAC for
PKCS#12 file, allowing user to select algorithms other than SHA-1.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agotests: expand pkcs7 test to also check GOST files
Dmitry Eremin-Solenikov [Sun, 24 Sep 2017 07:31:39 +0000 (10:31 +0300)] 
tests: expand pkcs7 test to also check GOST files

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agotest: test GOST keys import/export
Dmitry Eremin-Solenikov [Sat, 23 Sep 2017 19:51:19 +0000 (22:51 +0300)] 
test: test GOST keys import/export

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agocerttool: ask if certificate will be used for data encryption
Dmitry Eremin-Solenikov [Sat, 23 Sep 2017 18:40:34 +0000 (21:40 +0300)] 
certtool: ask if certificate will be used for data encryption

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agotests: add common gost certificates for tests
Dmitry Eremin-Solenikov [Sat, 23 Sep 2017 18:37:18 +0000 (21:37 +0300)] 
tests: add common gost certificates for tests

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoSupport key matching with GOST keys
Dmitry Eremin-Solenikov [Tue, 6 Dec 2016 00:57:24 +0000 (03:57 +0300)] 
Support key matching with GOST keys

GOST keys do not support signing non-GOST hashes, so use correct digest
algorithm when verifying that GOST public and private keys match.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd generated GOST credentials for tests
Dmitry Eremin-Solenikov [Sat, 26 Nov 2016 01:51:41 +0000 (04:51 +0300)] 
Add generated GOST credentials for tests

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoUse GOST R 34.11-94 when generating key for PKCS data to be encrypted with GOST 28147-89
Dmitry Eremin-Solenikov [Mon, 21 Nov 2016 17:58:00 +0000 (20:58 +0300)] 
Use GOST R 34.11-94 when generating key for PKCS data to be encrypted with GOST 28147-89

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agocerttool: support generating GOST-encrypted PKCS#8/12 files
Dmitry Eremin-Solenikov [Mon, 21 Nov 2016 17:52:43 +0000 (20:52 +0300)] 
certtool: support generating GOST-encrypted PKCS#8/12 files

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd gost certificates to chainverify tests
Dmitry Eremin-Solenikov [Thu, 17 Nov 2016 21:23:54 +0000 (00:23 +0300)] 
Add gost certificates to chainverify tests

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoExpand x509 sign/verify test with GOST algorithms
Dmitry Eremin-Solenikov [Thu, 17 Nov 2016 07:47:16 +0000 (10:47 +0300)] 
Expand x509 sign/verify test with GOST algorithms

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agooids: expand to include GOST digests/signatures
Dmitry Eremin-Solenikov [Thu, 17 Nov 2016 07:22:11 +0000 (10:22 +0300)] 
oids: expand to include GOST digests/signatures

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agotests: privkey-keygen: adapt to support GOST algorithms
Dmitry Eremin-Solenikov [Tue, 29 Aug 2017 14:44:10 +0000 (17:44 +0300)] 
tests: privkey-keygen: adapt to support GOST algorithms

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoSupport GOST private keys generation
Dmitry Eremin-Solenikov [Mon, 24 Oct 2016 17:56:46 +0000 (20:56 +0300)] 
Support GOST private keys generation

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agocerttool: support dumping GOST private key information
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 15:01:20 +0000 (18:01 +0300)] 
certtool: support dumping GOST private key information

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd several DN entry definitions used by qualified GOST signatures
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 14:38:57 +0000 (17:38 +0300)] 
Add several DN entry definitions used by qualified GOST signatures

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agocertool: export GOST privkeys only in PKCS#8 format
Dmitry Eremin-Solenikov [Mon, 28 Aug 2017 11:34:33 +0000 (14:34 +0300)] 
certool: export GOST privkeys only in PKCS#8 format

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd support for PKCS12 files using GOST MAC
Dmitry Eremin-Solenikov [Wed, 9 Nov 2016 11:19:58 +0000 (14:19 +0300)] 
Add support for PKCS12 files using GOST MAC

Local PKCS12-based standard derives from RFC 7292 (PKCS #12) in using
PBKDF2 to generate MAC key rather than using PKCS12 scheme.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd support for PBES2/PBKDF2 using GOST algorithms
Dmitry Eremin-Solenikov [Wed, 9 Nov 2016 11:02:56 +0000 (14:02 +0300)] 
Add support for PBES2/PBKDF2 using GOST algorithms

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoSupport PKCS#12 key derivation with GOST digests
Dmitry Eremin-Solenikov [Sat, 28 Jan 2017 03:01:01 +0000 (06:01 +0300)] 
Support PKCS#12 key derivation with GOST digests

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd support for importing/exporting GOST private keys
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 14:56:04 +0000 (17:56 +0300)] 
Add support for importing/exporting GOST private keys

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoSupport importing/exporting X.509 GOST public keys
Dmitry Eremin-Solenikov [Mon, 18 Sep 2017 09:54:12 +0000 (12:54 +0300)] 
Support importing/exporting X.509 GOST public keys

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd ASN.1 definitions for GOST keys
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 01:43:35 +0000 (04:43 +0300)] 
Add ASN.1 definitions for GOST keys

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agonettle: add support for GOST 34.10 public keys
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 01:07:36 +0000 (04:07 +0300)] 
nettle: add support for GOST 34.10 public keys

There is no support for GOST public keys derivation, as it is used only
for TLS or PKCS#7 with encrypted content.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd few functions to support basic operations with GOST public keys
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 14:05:38 +0000 (17:05 +0300)] 
Add few functions to support basic operations with GOST public keys

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd declarations for GOST R 34.10 signatures
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 01:02:30 +0000 (04:02 +0300)] 
Add declarations for GOST R 34.10 signatures

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoDefine GOST R 34.10 curves
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 00:55:10 +0000 (03:55 +0300)] 
Define GOST R 34.10 curves

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd declarations to support GOST public keys
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 01:00:21 +0000 (04:00 +0300)] 
Add declarations to support GOST public keys

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agoAdd support for I/O of little-endian MPI
Dmitry Eremin-Solenikov [Tue, 29 Nov 2016 02:28:17 +0000 (05:28 +0300)] 
Add support for I/O of little-endian MPI

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
8 years agonettle: add support for unsigned LE MPIs
Dmitry Eremin-Solenikov [Tue, 29 Nov 2016 02:30:10 +0000 (05:30 +0300)] 
nettle: add support for unsigned LE MPIs

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>