|
|
0bf02d |
diff -up openssl-1.1.1g/crypto/evp/pkey_kdf.c.edk2-build openssl-1.1.1g/crypto/evp/pkey_kdf.c
|
|
|
0bf02d |
--- openssl-1.1.1g/crypto/evp/pkey_kdf.c.edk2-build 2020-05-18 12:55:53.299548432 +0200
|
|
|
0bf02d |
+++ openssl-1.1.1g/crypto/evp/pkey_kdf.c 2020-05-18 12:55:53.340548788 +0200
|
|
|
0bf02d |
@@ -12,6 +12,7 @@
|
|
|
0bf02d |
#include <openssl/evp.h>
|
|
|
0bf02d |
#include <openssl/err.h>
|
|
|
0bf02d |
#include <openssl/kdf.h>
|
|
|
0bf02d |
+#include "internal/numbers.h"
|
|
|
0bf02d |
#include "crypto/evp.h"
|
|
|
0bf02d |
|
|
|
0bf02d |
static int pkey_kdf_init(EVP_PKEY_CTX *ctx)
|
|
|
0bf02d |
diff -up openssl-1.1.1g/crypto/kdf/hkdf.c.edk2-build openssl-1.1.1g/crypto/kdf/hkdf.c
|
|
|
0bf02d |
--- openssl-1.1.1g/crypto/kdf/hkdf.c.edk2-build 2020-05-18 12:55:53.340548788 +0200
|
|
|
0bf02d |
+++ openssl-1.1.1g/crypto/kdf/hkdf.c 2020-05-18 12:57:18.648288904 +0200
|
|
|
0bf02d |
@@ -13,6 +13,7 @@
|
|
|
0bf02d |
#include <openssl/hmac.h>
|
|
|
0bf02d |
#include <openssl/kdf.h>
|
|
|
0bf02d |
#include <openssl/evp.h>
|
|
|
0bf02d |
+#include "internal/numbers.h"
|
|
|
0bf02d |
#include "internal/cryptlib.h"
|
|
|
0bf02d |
#include "crypto/evp.h"
|
|
|
0bf02d |
#include "kdf_local.h"
|
|
|
0bf02d |
diff -up openssl-1.1.1g/crypto/rand/rand_unix.c.edk2-build openssl-1.1.1g/crypto/rand/rand_unix.c
|
|
|
0bf02d |
--- openssl-1.1.1g/crypto/rand/rand_unix.c.edk2-build 2020-05-18 12:56:05.646655554 +0200
|
|
|
0bf02d |
+++ openssl-1.1.1g/crypto/rand/rand_unix.c 2020-05-18 12:58:51.088090896 +0200
|
|
|
0bf02d |
@@ -20,7 +20,7 @@
|
|
|
0bf02d |
#include "crypto/fips.h"
|
|
|
0bf02d |
#include <stdio.h>
|
|
|
0bf02d |
#include "internal/dso.h"
|
|
|
0bf02d |
-#ifdef __linux
|
|
|
0bf02d |
+#if defined(__linux) && !defined(OPENSSL_SYS_UEFI)
|
|
|
0bf02d |
# include <sys/syscall.h>
|
|
|
0bf02d |
# include <sys/random.h>
|
|
|
0bf02d |
# ifdef DEVRANDOM_WAIT
|
|
|
0bf02d |
diff -up openssl-1.1.1g/include/crypto/fips.h.edk2-build openssl-1.1.1g/include/crypto/fips.h
|
|
|
0bf02d |
--- openssl-1.1.1g/include/crypto/fips.h.edk2-build 2020-05-18 12:55:53.296548406 +0200
|
|
|
0bf02d |
+++ openssl-1.1.1g/include/crypto/fips.h 2020-05-18 12:55:53.340548788 +0200
|
|
|
0bf02d |
@@ -50,10 +50,6 @@
|
|
|
0bf02d |
#include <openssl/opensslconf.h>
|
|
|
0bf02d |
#include <openssl/evp.h>
|
|
|
0bf02d |
|
|
|
0bf02d |
-#ifndef OPENSSL_FIPS
|
|
|
0bf02d |
-# error FIPS is disabled.
|
|
|
0bf02d |
-#endif
|
|
|
0bf02d |
-
|
|
|
0bf02d |
#ifdef OPENSSL_FIPS
|
|
|
0bf02d |
|
|
|
0bf02d |
int FIPS_module_mode_set(int onoff);
|
|
|
0bf02d |
@@ -97,4 +93,8 @@ void fips_set_selftest_fail(void);
|
|
|
0bf02d |
|
|
|
0bf02d |
void FIPS_get_timevec(unsigned char *buf, unsigned long *pctr);
|
|
|
0bf02d |
|
|
|
0bf02d |
+#else
|
|
|
0bf02d |
+
|
|
|
0bf02d |
+# define fips_in_post() 0
|
|
|
0bf02d |
+
|
|
|
0bf02d |
#endif
|