Skip to content

Commit

Permalink
fix:nobackend err
Browse files Browse the repository at this point in the history
  • Loading branch information
mertakman committed Dec 9, 2024
1 parent 54a87ba commit e51ccc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions patches/0002-Add-crypto-backend-foundation.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ From: qmuntal <[email protected]>
Date: Thu, 30 Jun 2022 10:03:03 +0200
Subject: [PATCH] Add crypto backend foundation

fix:nobackend panic consistently without return
---
src/crypto/aes/cipher.go | 2 +-
src/crypto/aes/cipher_asm.go | 2 +-
Expand Down Expand Up @@ -886,7 +887,7 @@ index 00000000000000..e5d7570d6d4363
+const isRequireFIPS = true
diff --git a/src/crypto/internal/backend/nobackend.go b/src/crypto/internal/backend/nobackend.go
new file mode 100644
index 00000000000000..be18ecce6eabaa
index 00000000000000..c8d1742872c484
--- /dev/null
+++ b/src/crypto/internal/backend/nobackend.go
@@ -0,0 +1,224 @@
Expand Down Expand Up @@ -1107,7 +1108,7 @@ index 00000000000000..be18ecce6eabaa
+ panic("cryptobackend: not available")
+}
+
+func SignDSA(priv *PrivateKeyDSA, hash []byte) (r, s BigInt, error) {
+func SignDSA(priv *PrivateKeyDSA, hash []byte) (r, s BigInt, err error) {
+ panic("cryptobackend: not available")
+}
+
Expand Down

0 comments on commit e51ccc6

Please sign in to comment.