diff --git a/gnutls-3.7.9.tar.xz b/gnutls-3.7.9.tar.xz
deleted file mode 100644
index 8c12498..0000000
--- a/gnutls-3.7.9.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:aaa03416cdbd54eb155187b359e3ec3ed52ec73df4df35a0edd49429ff64d844
-size 6377212
diff --git a/gnutls-3.7.9.tar.xz.sig b/gnutls-3.7.9.tar.xz.sig
deleted file mode 100644
index 5488913..0000000
Binary files a/gnutls-3.7.9.tar.xz.sig and /dev/null differ
diff --git a/gnutls-3.8.0.tar.xz b/gnutls-3.8.0.tar.xz
new file mode 100644
index 0000000..d57e970
--- /dev/null
+++ b/gnutls-3.8.0.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0ea0d11a1660a1e63f960f157b197abe6d0c8cb3255be24e1fb3815930b9bdc5
+size 6378480
diff --git a/gnutls-3.8.0.tar.xz.sig b/gnutls-3.8.0.tar.xz.sig
new file mode 100644
index 0000000..f22d076
Binary files /dev/null and b/gnutls-3.8.0.tar.xz.sig differ
diff --git a/gnutls-FIPS-140-3-references.patch b/gnutls-FIPS-140-3-references.patch
index 101757c..bfc6651 100644
--- a/gnutls-FIPS-140-3-references.patch
+++ b/gnutls-FIPS-140-3-references.patch
@@ -1,8 +1,8 @@
-Index: gnutls-3.7.9/configure.ac
+Index: gnutls-3.8.0/configure.ac
===================================================================
---- gnutls-3.7.9.orig/configure.ac
-+++ gnutls-3.7.9/configure.ac
-@@ -588,19 +588,19 @@ LT_INIT([disable-static,win32-dll,shared
+--- gnutls-3.8.0.orig/configure.ac
++++ gnutls-3.8.0/configure.ac
+@@ -586,19 +586,19 @@ LT_INIT([disable-static,win32-dll,shared
AC_LIB_HAVE_LINKFLAGS(dl,, [#include ], [dladdr (0, 0);])
AC_ARG_ENABLE(fips140-mode,
@@ -25,11 +25,11 @@ Index: gnutls-3.7.9/configure.ac
AC_ARG_WITH(fips140-module-name, AS_HELP_STRING([--with-fips140-module-name],
[specify the FIPS140 module name]),
-Index: gnutls-3.7.9/doc/cha-gtls-app.texi
+Index: gnutls-3.8.0/doc/cha-gtls-app.texi
===================================================================
---- gnutls-3.7.9.orig/doc/cha-gtls-app.texi
-+++ gnutls-3.7.9/doc/cha-gtls-app.texi
-@@ -206,7 +206,7 @@ CPU. The currently available options are
+--- gnutls-3.8.0.orig/doc/cha-gtls-app.texi
++++ gnutls-3.8.0/doc/cha-gtls-app.texi
+@@ -222,7 +222,7 @@ CPU. The currently available options are
@end itemize
@item @code{GNUTLS_FORCE_FIPS_MODE}
@@ -38,10 +38,10 @@ Index: gnutls-3.7.9/doc/cha-gtls-app.texi
if set to one it will force the FIPS mode enablement.
@end multitable
-Index: gnutls-3.7.9/doc/cha-internals.texi
+Index: gnutls-3.8.0/doc/cha-internals.texi
===================================================================
---- gnutls-3.7.9.orig/doc/cha-internals.texi
-+++ gnutls-3.7.9/doc/cha-internals.texi
+--- gnutls-3.8.0.orig/doc/cha-internals.texi
++++ gnutls-3.8.0/doc/cha-internals.texi
@@ -14,7 +14,7 @@ happens inside the black box.
* TLS Hello Extension Handling::
* Cryptographic Backend::
@@ -162,11 +162,11 @@ Index: gnutls-3.7.9/doc/cha-internals.texi
operation. It can be attached to the current execution thread with
@funcref{gnutls_fips140_push_context} and its internal state will be
updated until it is detached with
-Index: gnutls-3.7.9/doc/enums.texi
+Index: gnutls-3.8.0/doc/enums.texi
===================================================================
---- gnutls-3.7.9.orig/doc/enums.texi
-+++ gnutls-3.7.9/doc/enums.texi
-@@ -1169,7 +1169,7 @@ application traffic secret is installed
+--- gnutls-3.8.0.orig/doc/enums.texi
++++ gnutls-3.8.0/doc/enums.texi
+@@ -1176,7 +1176,7 @@ application traffic secret is installed
@c gnutls_fips_mode_t
@table @code
@item GNUTLS_@-FIPS140_@-DISABLED
@@ -175,7 +175,7 @@ Index: gnutls-3.7.9/doc/enums.texi
@item GNUTLS_@-FIPS140_@-STRICT
The default mode; all forbidden operations will cause an
operation failure via error code.
-@@ -1177,8 +1177,8 @@ operation failure via error code.
+@@ -1184,8 +1184,8 @@ operation failure via error code.
A transient state during library initialization. That state
cannot be set or seen by applications.
@item GNUTLS_@-FIPS140_@-LAX
@@ -186,10 +186,10 @@ Index: gnutls-3.7.9/doc/enums.texi
application is aware of the followed security policy, and needs
to utilize disallowed operations for other reasons (e.g., compatibility).
@item GNUTLS_@-FIPS140_@-LOG
-Index: gnutls-3.7.9/doc/functions/gnutls_fips140_set_mode
+Index: gnutls-3.8.0/doc/functions/gnutls_fips140_set_mode
===================================================================
---- gnutls-3.7.9.orig/doc/functions/gnutls_fips140_set_mode
-+++ gnutls-3.7.9/doc/functions/gnutls_fips140_set_mode
+--- gnutls-3.8.0.orig/doc/functions/gnutls_fips140_set_mode
++++ gnutls-3.8.0/doc/functions/gnutls_fips140_set_mode
@@ -3,7 +3,7 @@
@@ -215,10 +215,10 @@ Index: gnutls-3.7.9/doc/functions/gnutls_fips140_set_mode
values for @code{mode} or to @code{GNUTLS_FIPS140_SELFTESTS} mode, the library
switches to @code{GNUTLS_FIPS140_STRICT} mode.
-Index: gnutls-3.7.9/doc/gnutls.html
+Index: gnutls-3.8.0/doc/gnutls.html
===================================================================
---- gnutls-3.7.9.orig/doc/gnutls.html
-+++ gnutls-3.7.9/doc/gnutls.html
+--- gnutls-3.8.0.orig/doc/gnutls.html
++++ gnutls-3.8.0/doc/gnutls.html
@@ -486,7 +486,7 @@ Documentation License”.
11.4 TLS Extension Handling
11.5 Cryptographic Backend
@@ -228,7 +228,7 @@ Index: gnutls-3.7.9/doc/gnutls.html
Appendix A Upgrading from previous versions
Appendix B Support
-@@ -8990,7 +8990,7 @@ CPU. The currently available options are
+@@ -9009,7 +9009,7 @@ CPU. The currently available options are
0x200000: Enable VIA PHE
0x400000: Enable VIA PHE SHA512
@@ -405,7 +405,7 @@ Index: gnutls-3.7.9/doc/gnutls.html
-@@ -24538,7 +24538,7 @@ unusable. This function is not thread-s
+@@ -24526,7 +24526,7 @@ unusable. This function is not thread-s
gnutls_fips140_set_mode
- Function: void gnutls_fips140_set_mode (gnutls_fips_mode_t mode, unsigned flags) ¶
@@ -414,7 +414,7 @@ Index: gnutls-3.7.9/doc/gnutls.html
flags: should be zero or GNUTLS_FIPS140_SET_MODE_THREAD
-@@ -24547,13 +24547,13 @@ unusable. This function is not thread-s
+@@ -24535,13 +24535,13 @@ unusable. This function is not thread-s
behavior with no flags after threads are created is undefined.
When the flag GNUTLS_FIPS140_SET_MODE_THREAD
is specified
@@ -430,7 +430,7 @@ Index: gnutls-3.7.9/doc/gnutls.html
values for mode
or to GNUTLS_FIPS140_SELFTESTS
mode, the library
switches to GNUTLS_FIPS140_STRICT
mode.
-@@ -46665,7 +46665,7 @@ Next: | gnutls_fingerprint : | | Core TLS API |
| gnutls_fips140_context_deinit : | | Core TLS API |
| gnutls_fips140_context_init : | | Core TLS API |
@@ -439,11 +439,11 @@ Index: gnutls-3.7.9/doc/gnutls.html
| gnutls_fips140_get_operation_state : | | Core TLS API |
| gnutls_fips140_mode_enabled : | | Core TLS API |
| gnutls_fips140_pop_context : | | Core TLS API |
-Index: gnutls-3.7.9/doc/gnutls.info-3
+Index: gnutls-3.8.0/doc/gnutls.info-3
===================================================================
---- gnutls-3.7.9.orig/doc/gnutls.info-3
-+++ gnutls-3.7.9/doc/gnutls.info-3
-@@ -2458,7 +2458,7 @@ to 'more'. Both will exit with a status
+--- gnutls-3.8.0.orig/doc/gnutls.info-3
++++ gnutls-3.8.0/doc/gnutls.info-3
+@@ -1631,7 +1631,7 @@ to 'more'. Both will exit with a status
--inline-commands-prefix=str Change the default delimiter for inline commands
--provider=file Specify the PKCS #11 provider library
- file must pre-exist
@@ -452,7 +452,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
--list-config Reports the configuration of the library
--logfile=str Redirect informational messages to a specific file
--keymatexport=str Label used for exporting keying material
-@@ -3559,7 +3559,7 @@ to know what happens inside the black bo
+@@ -2732,7 +2732,7 @@ to know what happens inside the black bo
* TLS Hello Extension Handling::
* Cryptographic Backend::
* Random Number Generators-internals::
@@ -461,7 +461,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
File: gnutls.info, Node: The TLS Protocol, Next: TLS Handshake Protocol, Up: Internal architecture of GnuTLS
-@@ -4091,7 +4091,7 @@ and abstract key types::.
+@@ -3264,7 +3264,7 @@ and abstract key types::.
kernel implementation of '/dev/crypto'.
@@ -470,7 +470,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
11.6 Random Number Generators
=============================
-@@ -4101,7 +4101,7 @@ About the generators
+@@ -3274,7 +3274,7 @@ About the generators
GnuTLS provides two random generators. The default, and the AES-DRBG
random generator which is only used when the library is compiled with
@@ -479,7 +479,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
The default generator - inner workings
--------------------------------------
-@@ -4250,25 +4250,25 @@ after observing the output of the PRNG.
+@@ -3423,25 +3423,25 @@ after observing the output of the PRNG.
the above paragraph, all levels are immune to such attack.
@@ -513,7 +513,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
modified as follows.
* The random generator used switches to DRBG-AES
-@@ -4276,11 +4276,11 @@ modified as follows.
+@@ -3449,11 +3449,11 @@ modified as follows.
startup
* Algorithm self-tests are run on library load
@@ -528,7 +528,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
generation
* Any cryptographic operation will be refused if any of the
self-tests failed
-@@ -4289,7 +4289,7 @@ There are also few environment variables
+@@ -3462,7 +3462,7 @@ There are also few environment variables
The environment variable 'GNUTLS_SKIP_FIPS_INTEGRITY_CHECKS' will
disable the library integrity tests on startup, and the variable
'GNUTLS_FORCE_FIPS_MODE' can be set to force a value from *note Figure
@@ -537,7 +537,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
while '0' will disable it.
The integrity checks for the dependent libraries and GnuTLS are
-@@ -4298,20 +4298,20 @@ library. The key for the operations can
+@@ -3471,20 +3471,20 @@ library. The key for the operations can
with the configure option '-with-fips140-key'. The MAC algorithm used
is HMAC-SHA256.
@@ -562,7 +562,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
'GNUTLS_FIPS140_STRICT'
The default mode; all forbidden operations will cause an operation
failure via error code.
-@@ -4319,8 +4319,8 @@ in *note Figure 11.5: gnutls_fips_mode_t
+@@ -3492,8 +3492,8 @@ in *note Figure 11.5: gnutls_fips_mode_t
A transient state during library initialization. That state cannot
be set or seen by applications.
'GNUTLS_FIPS140_LAX'
@@ -573,7 +573,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
the application is aware of the followed security policy, and needs
to utilize disallowed operations for other reasons (e.g.,
compatibility).
-@@ -4333,7 +4333,7 @@ in *note Figure 11.5: gnutls_fips_mode_t
+@@ -3506,7 +3506,7 @@ in *note Figure 11.5: gnutls_fips_mode_t
Figure 11.5: The 'gnutls_fips_mode_t' enumeration.
The intention of this API is to be used by applications which may run in
@@ -582,7 +582,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
set, e.g., for non-security related purposes. In these cases
applications should wrap the non-compliant code within blocks like the
following.
-@@ -4357,10 +4357,10 @@ are macros to simplify the following seq
+@@ -3530,10 +3530,10 @@ are macros to simplify the following seq
The reason of the 'GNUTLS_FIPS140_SET_MODE_THREAD' flag in the previous
calls is to localize the change in the mode. Note also, that such a
@@ -595,7 +595,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
gnutls_fips140_set_mode(GNUTLS_FIPS140_LAX, 0);
Service indicator
-@@ -4379,7 +4379,7 @@ within a given context.
+@@ -3552,7 +3552,7 @@ within a given context.
'INT *note gnutls_fips140_push_context:: (gnutls_fips140_context_t CONTEXT)'
'INT *note gnutls_fips140_pop_context:: ( VOID)'
@@ -604,7 +604,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
operation. It can be attached to the current execution thread with
*note gnutls_fips140_push_context:: and its internal state will be
updated until it is detached with *note gnutls_fips140_pop_context::.
-@@ -4837,8 +4837,8 @@ There are certifications from national o
+@@ -4010,8 +4010,8 @@ There are certifications from national o
practices, such as unit testing and reliance on well known crypto
primitives.
@@ -615,7 +615,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
File: gnutls.info, Node: Error codes, Next: Supported ciphersuites, Prev: Support, Up: Top
-@@ -9315,7 +9315,7 @@ gnutls_fips140_set_mode
+@@ -8476,7 +8476,7 @@ gnutls_fips140_set_mode
-- Function: void gnutls_fips140_set_mode (gnutls_fips_mode_t MODE,
unsigned FLAGS)
@@ -624,7 +624,7 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
FLAGS: should be zero or 'GNUTLS_FIPS140_SET_MODE_THREAD'
-@@ -9325,12 +9325,12 @@ gnutls_fips140_set_mode
+@@ -8486,12 +8486,12 @@ gnutls_fips140_set_mode
undefined.
When the flag 'GNUTLS_FIPS140_SET_MODE_THREAD' is specified then
@@ -639,10 +639,10 @@ Index: gnutls-3.7.9/doc/gnutls.info-3
values for 'mode' or to 'GNUTLS_FIPS140_SELFTESTS' mode, the
library switches to 'GNUTLS_FIPS140_STRICT' mode.
-Index: gnutls-3.7.9/doc/invoke-gnutls-cli.texi
+Index: gnutls-3.8.0/doc/invoke-gnutls-cli.texi
===================================================================
---- gnutls-3.7.9.orig/doc/invoke-gnutls-cli.texi
-+++ gnutls-3.7.9/doc/invoke-gnutls-cli.texi
+--- gnutls-3.8.0.orig/doc/invoke-gnutls-cli.texi
++++ gnutls-3.8.0/doc/invoke-gnutls-cli.texi
@@ -99,7 +99,7 @@ None:
--inline-commands-prefix=str Change the default delimiter for inline commands
--provider=file Specify the PKCS #11 provider library
@@ -652,10 +652,10 @@ Index: gnutls-3.7.9/doc/invoke-gnutls-cli.texi
--list-config Reports the configuration of the library
--logfile=str Redirect informational messages to a specific file
--keymatexport=str Label used for exporting keying material
-Index: gnutls-3.7.9/doc/manpages/gnutls-cli.1
+Index: gnutls-3.8.0/doc/manpages/gnutls-cli.1
===================================================================
---- gnutls-3.7.9.orig/doc/manpages/gnutls-cli.1
-+++ gnutls-3.7.9/doc/manpages/gnutls-cli.1
+--- gnutls-3.8.0.orig/doc/manpages/gnutls-cli.1
++++ gnutls-3.8.0/doc/manpages/gnutls-cli.1
@@ -389,7 +389,7 @@ Specify the PKCS #11 provider library.
This will override the default options in /etc/gnutls/pkcs11.conf
.TP
@@ -665,11 +665,11 @@ Index: gnutls-3.7.9/doc/manpages/gnutls-cli.1
.sp
.TP
.NOP \f\*[B-Font]\-\-list\-config\f[]
-Index: gnutls-3.7.9/doc/reference/html/gnutls-gnutls.html
+Index: gnutls-3.8.0/doc/reference/html/gnutls-gnutls.html
===================================================================
---- gnutls-3.7.9.orig/doc/reference/html/gnutls-gnutls.html
-+++ gnutls-3.7.9/doc/reference/html/gnutls-gnutls.html
-@@ -20552,12 +20552,12 @@ gnutls_fips140_set_mode (
When the flag GNUTLS_FIPS140_SET_MODE_THREAD
is specified
@@ -684,7 +684,7 @@ Index: gnutls-3.7.9/doc/reference/html/gnutls-gnutls.html
values for mode
or to GNUTLS_FIPS140_SELFTESTS
mode, the library
switches to GNUTLS_FIPS140_STRICT
mode.
-@@ -20572,7 +20572,7 @@ switches to mode
@@ -693,7 +693,7 @@ Index: gnutls-3.7.9/doc/reference/html/gnutls-gnutls.html
|
-@@ -25479,7 +25479,7 @@ encryption
+@@ -25568,7 +25568,7 @@ encryption
enum gnutls_fips_mode_t
@@ -702,7 +702,7 @@ Index: gnutls-3.7.9/doc/reference/html/gnutls-gnutls.html