diff --git a/patches/0002-Add-crypto-backend-foundation.patch b/patches/0002-Add-crypto-backend-foundation.patch index 5a9505d6bc..bd7f65df65 100644 --- a/patches/0002-Add-crypto-backend-foundation.patch +++ b/patches/0002-Add-crypto-backend-foundation.patch @@ -28,7 +28,7 @@ Subject: [PATCH] Add crypto backend foundation .../internal/backend/fips140/isrequirefips.go | 9 + .../internal/backend/fips140/norequirefips.go | 9 + .../internal/backend/fips140/nosystemfips.go | 9 + - src/crypto/internal/backend/nobackend.go | 192 ++++++++++++++++++ + src/crypto/internal/backend/nobackend.go | 200 ++++++++++++++++++ src/crypto/internal/cryptotest/allocations.go | 2 +- .../internal/cryptotest/implementations.go | 2 +- src/crypto/md5/md5.go | 7 + @@ -63,7 +63,7 @@ Subject: [PATCH] Add crypto backend foundation src/hash/notboring_test.go | 5 + src/net/smtp/smtp_test.go | 72 ++++--- src/runtime/runtime_boring.go | 5 + - 59 files changed, 832 insertions(+), 73 deletions(-) + 59 files changed, 840 insertions(+), 73 deletions(-) create mode 100644 src/crypto/ed25519/boring.go create mode 100644 src/crypto/ed25519/notboring.go create mode 100644 src/crypto/internal/backend/backend_test.go @@ -770,10 +770,10 @@ index 00000000000000..9e12c6d5d2239c +} diff --git a/src/crypto/internal/backend/nobackend.go b/src/crypto/internal/backend/nobackend.go new file mode 100644 -index 00000000000000..899dfebee4b738 +index 00000000000000..1cc281d644ed83 --- /dev/null +++ b/src/crypto/internal/backend/nobackend.go -@@ -0,0 +1,192 @@ +@@ -0,0 +1,200 @@ +// 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. diff --git a/patches/0003-Add-BoringSSL-crypto-backend.patch b/patches/0003-Add-BoringSSL-crypto-backend.patch index 2c85f95bba..3280e476c2 100644 --- a/patches/0003-Add-BoringSSL-crypto-backend.patch +++ b/patches/0003-Add-BoringSSL-crypto-backend.patch @@ -30,10 +30,10 @@ index 00000000000000..0b62cef68546d0 +var Dec = bbig.Dec diff --git a/src/crypto/internal/backend/boring_linux.go b/src/crypto/internal/backend/boring_linux.go new file mode 100644 -index 00000000000000..91e275cc3e239c +index 00000000000000..fa3cc559006a46 --- /dev/null +++ b/src/crypto/internal/backend/boring_linux.go -@@ -0,0 +1,224 @@ +@@ -0,0 +1,232 @@ +// 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. @@ -263,6 +263,6 @@ index 00000000000000..91e275cc3e239c + return false +} + -+func GenerateDSAParameters(l, n int) (p, q, g boring.BigInt, err error) { ++func GenerateDSAParameters(l, n int) (p, q, g BigInt, err error) { + panic("cryptobackend: not available") +} diff --git a/patches/0004-Add-OpenSSL-crypto-backend.patch b/patches/0004-Add-OpenSSL-crypto-backend.patch index 44667810bc..1019ae85bb 100644 --- a/patches/0004-Add-OpenSSL-crypto-backend.patch +++ b/patches/0004-Add-OpenSSL-crypto-backend.patch @@ -16,7 +16,7 @@ Subject: [PATCH] Add OpenSSL crypto backend .../internal/backend/bbig/big_openssl.go | 12 + .../internal/backend/fips140/nosystemfips.go | 2 + .../internal/backend/fips140/openssl.go | 41 +++ - src/crypto/internal/backend/openssl_linux.go | 269 ++++++++++++++++++ + src/crypto/internal/backend/openssl_linux.go | 287 ++++++++++++++++++ src/crypto/rsa/boring.go | 2 +- src/crypto/rsa/boring_test.go | 2 +- src/crypto/rsa/notboring.go | 2 +- @@ -33,7 +33,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 + - 29 files changed, 388 insertions(+), 17 deletions(-) + 29 files changed, 406 insertions(+), 17 deletions(-) create mode 100644 src/crypto/internal/backend/bbig/big_openssl.go create mode 100644 src/crypto/internal/backend/fips140/openssl.go create mode 100644 src/crypto/internal/backend/openssl_linux.go @@ -247,10 +247,10 @@ index 00000000000000..118efa3a492a7d +} diff --git a/src/crypto/internal/backend/openssl_linux.go b/src/crypto/internal/backend/openssl_linux.go new file mode 100644 -index 00000000000000..7014acaf82d9ab +index 00000000000000..5f512abef72865 --- /dev/null +++ b/src/crypto/internal/backend/openssl_linux.go -@@ -0,0 +1,278 @@ +@@ -0,0 +1,287 @@ +// 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. diff --git a/patches/0005-Add-CNG-crypto-backend.patch b/patches/0005-Add-CNG-crypto-backend.patch index 49bef2808f..149c64d2b0 100644 --- a/patches/0005-Add-CNG-crypto-backend.patch +++ b/patches/0005-Add-CNG-crypto-backend.patch @@ -7,7 +7,7 @@ Subject: [PATCH] Add CNG crypto backend src/cmd/api/boring_test.go | 2 +- src/cmd/go/go_boring_test.go | 2 +- src/crypto/boring/boring.go | 2 +- - src/crypto/ecdsa/badlinkname.go | 17 + + src/crypto/ecdsa/badlinkname.go | 17 ++ src/crypto/ecdsa/boring.go | 2 +- src/crypto/ecdsa/notboring.go | 2 +- src/crypto/internal/backend/backend_test.go | 4 +- @@ -175,10 +175,10 @@ index 00000000000000..92623031fd87d0 +var Dec = bbig.Dec diff --git a/src/crypto/internal/backend/cng_windows.go b/src/crypto/internal/backend/cng_windows.go new file mode 100644 -index 00000000000000..9758dcd5d7fe30 +index 00000000000000..5f5c22de4367be --- /dev/null +++ b/src/crypto/internal/backend/cng_windows.go -@@ -0,0 +1,276 @@ +@@ -0,0 +1,289 @@ +// 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.