summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | doc update [ci skip]Nikos Mavrogiannopoulos2019-07-081-1/+1
|/ / / / | | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | | Merge branch 'tmp-cli-debug' into 'master'Dmitry Eremin-Solenikov2019-07-014-2/+32
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | gnutls-cli-debug: test whether RSA key exchange is supported Closes #449 See merge request gnutls/gnutls!1039
| * | | gnutls-cli-debug: test whether RSA key exchange is supportedNikos Mavrogiannopoulos2019-06-294-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | Resolves: #449 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | | Merge branch 'tmp-fix-desc' into 'master'Nikos Mavrogiannopoulos2019-06-303-5/+325
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | gnutls_session_get_desc: avoid printing a NULL value See merge request gnutls/gnutls!1038
| * | | | gnutls_session_get_desc: avoid printing a NULL valuetmp-fix-descNikos Mavrogiannopoulos2019-06-293-5/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When gnutls_session_set_premaster() is used (under openconnect), it is possible that gnutls_session_get_desc will print a string like this: "(DTLS1.2)-(ECDHE-(null))-(AES-256-GCM)" With this change we ensure that we do not print null values. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | | | Merge branch 'tmp-fips-drbg-continuous' into 'master'Daiki Ueno2019-06-301-21/+81
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | nettle/rnd-fips: add FIPS 140-2 continuous RNG test See merge request gnutls/gnutls!1034
| * | | | nettle/rnd-fips: add FIPS 140-2 continuous RNG testtmp-fips-drbg-continuousDaiki Ueno2019-06-281-21/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a continuous random number generator test as defined in FIPS 140-2 4.9.2, by iteratively fetching fixed sized block from the system and comparing consecutive blocks. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | | | | Merge branch 'mac-gmac' into 'master'Dmitry Eremin-Solenikov2019-06-299-6/+280
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib: add support for AES-GMAC Closes #781 See merge request gnutls/gnutls!1036
| * | | | | lib: document gnutls_hmac_fast vs nonce relationshipDmitry Eremin-Solenikov2019-06-282-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | | | tests/gnutls_hmac_fast: run test for AES-UMAC-96/-128Dmitry Eremin-Solenikov2019-06-281-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | | | nettle: return true for gnutls_mac_exists(AES-CMAC*)Dmitry Eremin-Solenikov2019-06-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | | | NEWS: add an entry for AES-GMAC algorithmsDmitry Eremin-Solenikov2019-06-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | | | tests/gnutls_hmac_fast: run test for AES-GMAC-128/-192/-256Dmitry Eremin-Solenikov2019-06-281-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | | | nettle/mac: fail mac calculation if nonce is required but not providedDmitry Eremin-Solenikov2019-06-281-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fail _wrap_nettle_mac_set_nonce() and _wrap_nettle_mac_fast() if MAC requires nonce, but it was not supplied. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | | | nettle/mac: in mac_fast call set_nonce after set_keyDmitry Eremin-Solenikov2019-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling set_nonce before set_key is plain incorrect. For GMAC key is not initialized. For UMAC set_key will reset nonce to empty. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | | | lib: add support for AES-GMACDmitry Eremin-Solenikov2019-06-286-0/+208
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for computing AES-GMAC using MAC API, as requested by Samba for SMB3 support. Resolves: #781 Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* | | | | Merge branch 'tmp-fix-gnutls_x509_crt_list_import2' into 'master'Nikos Mavrogiannopoulos2019-06-282-1/+4
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | Fix gnutls_x509_crt_list_import2() documentation Closes #794 See merge request gnutls/gnutls!1037
| * | | | tests: gnutls_x509_crt_list_import: verify that return code is as documentedtmp-fix-gnutls_x509_crt_list_import2Nikos Mavrogiannopoulos2019-06-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That checks whether the return code of gnutls_x509_crt_list_import() contains the number of loaded certificates. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | | | gnutls_x509_crt_list_import2: updated doc to reflect the actual return value ↵Nikos Mavrogiannopoulos2019-06-281-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | options Resolves: #794 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* | | | Merge branch 'tmp-asm' into 'master'Nikos Mavrogiannopoulos2019-06-2771-13581/+53045
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Updated asm files to latest version under cryptogams license See merge request gnutls/gnutls!989
| * | | | Align _gnutls_x86_cpuid_s as OPENSSL_ia32cap_P would beNikos Mavrogiannopoulos2019-06-2721-586/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were not setting the third array member correctly, though this didn't have any impact to previous implementations as they did not rely on it. This also moves away from the custom implementation of cpuid (which was limited), and we now rely on the compiler's version. This effectively enables support for SHA_NI. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | | | Updated asm files to latest version under cryptogams licenseNikos Mavrogiannopoulos2019-06-2757-13003/+52952
|/ / / / | | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* | | | Merge branch 'hmac-copy' into 'master'Dmitry Eremin-Solenikov2019-06-2625-0/+343
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | gnutls_hmac_copy() API Closes #787 See merge request gnutls/gnutls!1035
| * | | NEWS: document gnutls_hash/hmac_copy additionDmitry Eremin-Solenikov2019-06-261-0/+6
| | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | gnutls_hash/hmac_copy: check its usability in all casesNikos Mavrogiannopoulos2019-06-267-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | During the test suite run we require that all supported MAC and hash algorithms implement the copy function. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | | accelerated ciphers: implement hmac and hash copyNikos Mavrogiannopoulos2019-06-266-0/+121
| | | | | | | | | | | | | | | | | | | | | | | | This implements the new API to all internal implementations. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | | lib: add support for gnutls_hash_copy()Dmitry Eremin-Solenikov2019-06-2612-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | Add gnutls_hash_copy() function for copying message digest context. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | crypto-selftests: add test for gnutls_hmac_copy()Dmitry Eremin-Solenikov2019-06-261-0/+28
| | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | api: add gnutls_hmac_copy() functionDmitry Eremin-Solenikov2019-06-267-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add gnutls_hmac_copy() API to duplicate MAC handler state, which is necessary for SMB3 support. Resolves: #787 Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | Add MAC copying support to nettle backendDmitry Eremin-Solenikov2019-06-241-0/+17
| | | | | | | | | | | | | | | | Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
| * | | Add MAC api to support copying of instancesDmitry Eremin-Solenikov2019-06-244-0/+22
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | GOST ciphersuites requires continuously computing MAC of all the previously sent or received data. The easies way to support that is to add support for copy function, that creates MAC instance with the same internal state. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* | | Merge branch 'tmp-inih' into 'master'Nikos Mavrogiannopoulos2019-06-2044-6920/+9050
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Enhance the configuration file capabilities Closes #587 See merge request gnutls/gnutls!1013
| * | | updated auto-generated filesNikos Mavrogiannopoulos2019-06-205-6795/+6932
| | | | | | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | | config: added ability to override and mark algorithms as disabledNikos Mavrogiannopoulos2019-06-2034-43/+1521
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the system administrator or the distributor to use the gnutls configuration file to mark hashes, signature algorithms, TLS versions, curves, groups, ciphers KX, and MAC algorithms as insecure (the last four only in the context of a TLS session). It also allows to set a minimum profile which the applications cannot fall below. The options intentionally do not allow marking algorithms as secure so that the configuration file cannot be used as an attack vector. This change also makes sure that unsupported and disabled protocols during compile time (e.g., SSL3.0), do not get listed by gnutls-cli. The configuration file feature can be disabled at compile time with an empty --with-system-priority-file. This patch it introduces the function gnutls_get_system_config_file() allowing applications to check whether a configuration file was used. Resolves: #587 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | | Use inih to parse configuration fileNikos Mavrogiannopoulos2019-06-209-92/+607
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces the inih copylib, and makes our configuration file parsing more flexible. Relates: #587 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* | | | Merge branch 'makefile-patch' into 'master'Nikos Mavrogiannopoulos2019-06-201-3/+3
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Corrected call for updating ABI files See merge request gnutls/gnutls!1033
| * | | Corrected call for updating ABI filesKarsten Ohme2019-06-191-3/+3
| |/ / | | | | | | | | | Signed-off-by: Karsten Ohme <k_o_@users.sourceforge.net>
* | | Merge branch 'tmp-deprecate-registration-apis' into 'master'Nikos Mavrogiannopoulos2019-06-202-5/+18
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Marked the crypto backend registration APIs as deprecated Closes #789 See merge request gnutls/gnutls!1032
| * | | Marked the crypto backend registration APIs as deprecatedtmp-deprecate-registration-apisNikos Mavrogiannopoulos2019-06-202-5/+18
| |/ / | | | | | | | | | | | | | | | | | | | | | This is to warn for a future conversion of these APIs to a no-op. Resolves: #789 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | Merge branch 'tmp-small-records-tests' into 'master'Daiki Ueno2019-06-2016-26/+345
|\ \ \ | |/ / |/| | | | | | | | tests: improve record_size_limit tests See merge request gnutls/gnutls!1023
| * | gnutls-cli-debug.sh: sanity check of %ALLOW_SMALL_RECORDS testtmp-small-records-testsNikos Mavrogiannopoulos2019-06-191-0/+3
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | tlsfuzzer: test both with and without %ALLOW_SMALL_RECORDSDaiki Ueno2019-06-199-3/+148
| | | | | | | | | | | | | | | | | | | | | The option changes the behavior of the server, it would make sense to check both with and without %ALLOW_SMALL_RECORDS. Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | tlsfuzzer: use fixed HTTP response for record_size_limit testsDaiki Ueno2019-06-193-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | Previously those tests assumed varying sizes of connection information gnutls-serv sends. This is too brittle and if the default algorithm has changed the tests need to be updated. Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | gnutls-serv: add --httpdata option to respond with fixed sized dataDaiki Ueno2019-06-192-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | By default, the gnutls-server --http responds with the connection information. While this is useful for manual testing, fixed content would be more desirable for automated testing. Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | gnutls-cli-debug: check if %ALLOW_SMALL_RECORDS is requiredDaiki Ueno2019-06-194-2/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new test against the server to check if %ALLOW_SMALL_RECORDS is required to continue communicating with the server. The test is in two parts: one to check if the server accepts records with the default size (512 bytes) and the other is to check if %ALLOW_SMALL_RECORDS helps if the previuos test fails. Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | gnutls-serv: add --recordsize optionDaiki Ueno2019-06-192-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | This adds a means to set maximum record size to receive. If the size is less than our default (< 512), --priority with %ALLOW_SMALL_RECORDS also needs to be specified. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | | doc: updated p11-kit links [ci skip]Nikos Mavrogiannopoulos2019-06-163-4/+4
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | Merge branch 'tmp-ametzler-doc-syntax-fix' into 'master'Nikos Mavrogiannopoulos2019-06-151-0/+1
|\ \ \ | | | | | | | | | | | | | | | | CONTRIBUTING.md: Fix syntax error [ci skip] See merge request gnutls/gnutls!1028
| * | | CONTRIBUTING.md: Fix syntax error [ci skip]Andreas Metzler2019-06-151-0/+1
|/ / / | | | | | | | | | Signed-off-by: Andreas Metzler <ametzler@bebt.de>
* | | Merge branch 'tmp-fix-raw-flag-in-newapi' into 'master'Nikos Mavrogiannopoulos2019-06-144-12/+24
|\ \ \ | |_|/ |/| | | | | | | | gnutls_privkey_sign_hash2: accept the GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA flag See merge request gnutls/gnutls!1025