Skip to content

Commit

Permalink
fix bigint syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mertakman committed Dec 10, 2024
1 parent b6673d0 commit 592171e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/0004-Add-OpenSSL-crypto-backend.patch
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ 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..736c0a5df7e80a
index 00000000000000..3c3991993ee40a
--- /dev/null
+++ b/src/crypto/internal/backend/openssl_linux.go
@@ -0,0 +1,420 @@
Expand Down Expand Up @@ -566,7 +566,7 @@ index 00000000000000..736c0a5df7e80a
+ return nil, nil, err
+ }
+
+ return bbig.Enc(new(big.Int).SetBytes(rByte)), bbig.Enc(new(big.BigInt).SetBytes(sByte)), nil
+ return bbig.Enc(new(big.Int).SetBytes(rByte)), bbig.Enc(new(big.Int).SetBytes(sByte)), nil
+}
+
+func VerifyDSA(pub *PublicKeyDSA, hashed []byte, r, s openssl.BigInt) bool {
Expand Down

0 comments on commit 592171e

Please sign in to comment.