forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cryptomb: add
BN_bn2lebinpad
definition for fips build (envoyproxy#…
…33756) The fips verison boringSSL is old. so it doesn't have the definition of BN_bn2lebinpad, so patch ipp-crypto to give a definition. Signed-off-by: He Jie Xu <hejie.xu@intel.com>
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/sources/ippcp/crypto_mb/src/common/ifma_cvt52.c b/sources/ippcp/crypto_mb/src/common/ifma_cvt52.c | ||
index e6db178c..0a1ecc49 100644 | ||
--- a/sources/ippcp/crypto_mb/src/common/ifma_cvt52.c | ||
+++ b/sources/ippcp/crypto_mb/src/common/ifma_cvt52.c | ||
@@ -16,9 +16,14 @@ | ||
|
||
#include <internal/common/ifma_defs.h> | ||
#include <internal/common/ifma_math.h> | ||
+#include <openssl/bn.h> | ||
|
||
#include <assert.h> | ||
|
||
+static int BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen) { | ||
+ return BN_bn2le_padded(to, tolen, a); | ||
+} | ||
+ | ||
#if defined(_MSC_VER) && (_MSC_VER < 1920) | ||
// Disable optimization for VS2017 due to AVX512 masking bug | ||
#define DISABLE_OPTIMIZATION __pragma(optimize( "", off )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters