Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
pgporada committed Jun 16, 2023
1 parent a7cb23a commit b209575
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions v4/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ import (
"crypto/elliptic"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/asn1"
"encoding/binary"
"encoding/pem"
"fmt"
"log"
"math"
"math/big"
"os"
"reflect"
"testing"

Expand Down Expand Up @@ -291,20 +288,6 @@ func TestInitializeKeyNotFound(t *testing.T) {
}
}

// loadCert loads a PEM certificate specified by filename or returns an error
func loadCert(filename string) (cert *x509.Certificate, err error) {
certPEM, err := os.ReadFile(filename)
if err != nil {
return
}
block, _ := pem.Decode(certPEM)
if block == nil {
return nil, fmt.Errorf("No data in cert PEM file %s", filename)
}
cert, err = x509.ParseCertificate(block.Bytes)
return
}

func TestSignECDSA(t *testing.T) {
ps := setup(t, ecKey)
sig := sign(t, ps, crypto.SHA256)
Expand Down

0 comments on commit b209575

Please sign in to comment.