1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Peymaneh <peymaneh@posteo.net>
Date: Sun, 27 Nov 2022 22:05:40 +0100
Subject: Fix disfunctional test
dummy curve used for testing has invalid curve points and causes panic
since Go 1.19: https://tip.golang.org/doc/go1.19#minor_library_changes
---
cryptoutil/cryptoutil_test.go | 3 ---
1 file changed, 3 deletions(-)
diff --git a/cryptoutil/cryptoutil_test.go b/cryptoutil/cryptoutil_test.go
index ab83c2e..c8674c1 100644
--- a/cryptoutil/cryptoutil_test.go
+++ b/cryptoutil/cryptoutil_test.go
@@ -2,8 +2,6 @@ package cryptoutil
import (
"crypto"
- "crypto/ecdsa"
- "crypto/elliptic"
"crypto/rsa"
"math/big"
"testing"
@@ -15,7 +13,6 @@ func TestGenerateSubjectKeyID(t *testing.T) {
pub crypto.PublicKey
}{
{"RSA", &rsa.PublicKey{N: big.NewInt(123), E: 65537}},
- {"ECDSA", &ecdsa.PublicKey{X: big.NewInt(123), Y: big.NewInt(123), Curve: elliptic.P224()}},
} {
test := test
t.Run(test.testName, func(t *testing.T) {
|