@@ -3719,24 +3719,24 @@ index 910679756f..44ebc7c15f 100644
3719
3719
} else {
3720
3720
testCurve = elliptic.P384()
3721
3721
diff --git a/src/go.mod b/src/go.mod
3722
- index c18ae7760f..0cff10a255 100644
3722
+ index c18ae7760f..12a1a3a4d6 100644
3723
3723
--- a/src/go.mod
3724
3724
+++ b/src/go.mod
3725
3725
@@ -3,6 +3,7 @@ module std
3726
3726
go 1.22
3727
3727
3728
3728
require (
3729
- + github.com/golang-fips/openssl/v2 v2.0.0-rc.3.0.20240221195800-576fe0d37788
3729
+ + github.com/golang-fips/openssl/v2 v2.0.1
3730
3730
golang.org/x/crypto v0.16.1-0.20231129163542-152cdb1503eb
3731
3731
golang.org/x/net v0.19.0
3732
3732
)
3733
3733
diff --git a/src/go.sum b/src/go.sum
3734
- index 7c3519882a..40a8b2ac04 100644
3734
+ index 7c3519882a..aeb3130373 100644
3735
3735
--- a/src/go.sum
3736
3736
+++ b/src/go.sum
3737
3737
@@ -1,3 +1,5 @@
3738
- + github.com/golang-fips/openssl/v2 v2.0.0-rc.3.0.20240221195800-576fe0d37788 h1:YCg1cLYMq0/36XzGcVt8rqnNCFC4HwK19/h3lbgBymc =
3739
- + github.com/golang-fips/openssl/v2 v2.0.0-rc.3.0.20240221195800-576fe0d37788 /go.mod h1:7tuBqX2Zov8Yq5mJ2yzlKhpnxOnWyEzi38AzeWRuQdg=
3738
+ + github.com/golang-fips/openssl/v2 v2.0.1 h1:oNIu7tARUHmSIY7Gqn5lbSCnHSduvkFJoM2FRq294lA =
3739
+ + github.com/golang-fips/openssl/v2 v2.0.1 /go.mod h1:7tuBqX2Zov8Yq5mJ2yzlKhpnxOnWyEzi38AzeWRuQdg=
3740
3740
golang.org/x/crypto v0.16.1-0.20231129163542-152cdb1503eb h1:1ceSY7sk6sJuiDREHpfyrqDnDljsLfEP2GuTClhBBfI=
3741
3741
golang.org/x/crypto v0.16.1-0.20231129163542-152cdb1503eb/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
3742
3742
golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
@@ -4022,7 +4022,7 @@ index 0000000000..6461f241f8
4022
4022
+ type BigInt []uint
4023
4023
diff --git a/src/vendor/github.com/golang-fips/openssl/v2/cipher.go b/src/vendor/github.com/golang-fips/openssl/v2/cipher.go
4024
4024
new file mode 100644
4025
- index 0000000000..ddaadfa889
4025
+ index 0000000000..2b983c5411
4026
4026
--- /dev/null
4027
4027
+++ b/src/vendor/github.com/golang-fips/openssl/v2/cipher.go
4028
4028
@@ -0,0 +1,582 @@
@@ -4561,12 +4561,12 @@ index 0000000000..ddaadfa889
4561
4561
+ return
4562
4562
+ }
4563
4563
+
4564
- + func newCipherCtx(kind cipherKind, mode cipherMode, encrypt cipherOp, key, iv []byte) (ctx C.GO_EVP_CIPHER_CTX_PTR, err error) {
4564
+ + func newCipherCtx(kind cipherKind, mode cipherMode, encrypt cipherOp, key, iv []byte) (_ C.GO_EVP_CIPHER_CTX_PTR, err error) {
4565
4565
+ cipher := loadCipher(kind, mode)
4566
4566
+ if cipher == nil {
4567
4567
+ panic("crypto/cipher: unsupported cipher: " + kind.String())
4568
4568
+ }
4569
- + ctx = C.go_openssl_EVP_CIPHER_CTX_new()
4569
+ + ctx : = C.go_openssl_EVP_CIPHER_CTX_new()
4570
4570
+ if ctx == nil {
4571
4571
+ return nil, fail("unable to create EVP cipher ctx")
4572
4572
+ }
@@ -5570,7 +5570,7 @@ index 0000000000..f74bd8f8d7
5570
5570
+ }
5571
5571
diff --git a/src/vendor/github.com/golang-fips/openssl/v2/evp.go b/src/vendor/github.com/golang-fips/openssl/v2/evp.go
5572
5572
new file mode 100644
5573
- index 0000000000..b2886e6906
5573
+ index 0000000000..a9237a6a0c
5574
5574
--- /dev/null
5575
5575
+++ b/src/vendor/github.com/golang-fips/openssl/v2/evp.go
5576
5576
@@ -0,0 +1,471 @@
@@ -5725,7 +5725,15 @@ index 0000000000..b2886e6906
5725
5725
+
5726
5726
+ func setupEVP(withKey withKeyFunc, padding C.int,
5727
5727
+ h, mgfHash hash.Hash, label []byte, saltLen C.int, ch crypto.Hash,
5728
- + init initFunc) (ctx C.GO_EVP_PKEY_CTX_PTR, err error) {
5728
+ + init initFunc) (_ C.GO_EVP_PKEY_CTX_PTR, err error) {
5729
+ + var ctx C.GO_EVP_PKEY_CTX_PTR
5730
+ + withKey(func(pkey C.GO_EVP_PKEY_PTR) C.int {
5731
+ + ctx = C.go_openssl_EVP_PKEY_CTX_new(pkey, nil)
5732
+ + return 1
5733
+ + })
5734
+ + if ctx == nil {
5735
+ + return nil, newOpenSSLError("EVP_PKEY_CTX_new failed")
5736
+ + }
5729
5737
+ defer func() {
5730
5738
+ if err != nil {
5731
5739
+ if ctx != nil {
@@ -5734,14 +5742,6 @@ index 0000000000..b2886e6906
5734
5742
+ }
5735
5743
+ }
5736
5744
+ }()
5737
- +
5738
- + withKey(func(pkey C.GO_EVP_PKEY_PTR) C.int {
5739
- + ctx = C.go_openssl_EVP_PKEY_CTX_new(pkey, nil)
5740
- + return 1
5741
- + })
5742
- + if ctx == nil {
5743
- + return nil, newOpenSSLError("EVP_PKEY_CTX_new failed")
5744
- + }
5745
5745
+ if err := init(ctx); err != nil {
5746
5746
+ return nil, err
5747
5747
+ }
@@ -9688,11 +9688,11 @@ index 0000000000..5de62f95a7
9688
9688
+ return nil
9689
9689
+ }
9690
9690
diff --git a/src/vendor/modules.txt b/src/vendor/modules.txt
9691
- index 338c496bf9..cae6a5f4fe 100644
9691
+ index 338c496bf9..187322fab6 100644
9692
9692
--- a/src/vendor/modules.txt
9693
9693
+++ b/src/vendor/modules.txt
9694
9694
@@ -1,3 +1,7 @@
9695
- + # github.com/golang-fips/openssl/v2 v2.0.0-rc.3.0.20240221195800-576fe0d37788
9695
+ + # github.com/golang-fips/openssl/v2 v2.0.1
9696
9696
+ ## explicit; go 1.20
9697
9697
+ github.com/golang-fips/openssl/v2
9698
9698
+ github.com/golang-fips/openssl/v2/bbig
0 commit comments