From b6673d060ddbb6baaf397d3cede91c0ced4e1a8b Mon Sep 17 00:00:00 2001 From: mertakman Date: Tue, 10 Dec 2024 16:47:12 +0000 Subject: [PATCH] fix:import math big --- patches/0004-Add-OpenSSL-crypto-backend.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/patches/0004-Add-OpenSSL-crypto-backend.patch b/patches/0004-Add-OpenSSL-crypto-backend.patch index 1795b3fe18..06f586f275 100644 --- a/patches/0004-Add-OpenSSL-crypto-backend.patch +++ b/patches/0004-Add-OpenSSL-crypto-backend.patch @@ -14,7 +14,7 @@ Subject: [PATCH] Add OpenSSL crypto backend src/crypto/ecdsa/notboring.go | 2 +- src/crypto/internal/backend/bbig/big.go | 2 +- .../internal/backend/bbig/big_openssl.go | 12 + - src/crypto/internal/backend/openssl_linux.go | 419 ++++++++++++++++++ + src/crypto/internal/backend/openssl_linux.go | 420 ++++++++++++++++++ src/crypto/internal/boring/fipstls/stub.s | 2 +- src/crypto/internal/boring/fipstls/tls.go | 2 +- src/crypto/rsa/boring.go | 2 +- @@ -40,7 +40,7 @@ Subject: [PATCH] Add OpenSSL crypto backend .../goexperiment/exp_opensslcrypto_on.go | 9 + src/internal/goexperiment/flags.go | 1 + src/os/exec/exec_test.go | 9 + - 36 files changed, 504 insertions(+), 25 deletions(-) + 36 files changed, 505 insertions(+), 25 deletions(-) create mode 100644 src/crypto/internal/backend/bbig/big_openssl.go create mode 100644 src/crypto/internal/backend/openssl_linux.go create mode 100644 src/internal/goexperiment/exp_opensslcrypto_off.go @@ -193,10 +193,10 @@ index 00000000000000..e6695dd66b1d02 +var Dec = bbig.Dec diff --git a/src/crypto/internal/backend/openssl_linux.go b/src/crypto/internal/backend/openssl_linux.go new file mode 100644 -index 00000000000000..dbb7962d4370b7 +index 00000000000000..736c0a5df7e80a --- /dev/null +++ b/src/crypto/internal/backend/openssl_linux.go -@@ -0,0 +1,419 @@ +@@ -0,0 +1,420 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. @@ -216,6 +216,7 @@ index 00000000000000..dbb7962d4370b7 + "errors" + "hash" + "io" ++ "math/big" + "syscall" + + "github.com/golang-fips/openssl/v2"