From ffe6e49220648a0b847e47e1072cf0b8d1b1f803 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Wed, 28 Oct 2020 14:56:38 +0100 Subject: go fmt --- x509.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'x509.go') diff --git a/x509.go b/x509.go index 841b477..04b3534 100644 --- a/x509.go +++ b/x509.go @@ -4,9 +4,9 @@ import ( "fmt" "crypto" - "crypto/rand" - "crypto/ed25519" "crypto/ecdsa" + "crypto/ed25519" + "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/pem" @@ -49,7 +49,6 @@ func LoadTrustAnchors(path string) ([]*x509.Certificate, *x509.CertPool, error) return anchors, pool, nil } - func LoadEd25519SigningKey(path string) (ed25519.PrivateKey, error) { data, err := ioutil.ReadFile(path) if err != nil { @@ -114,7 +113,6 @@ func VerifySignature(leaf, signature []byte, certificate *x509.Certificate) erro return nil } - func GenV1SDI(ld *LogParameters, leaf []byte) (StItem, error) { // Note that ed25519 does not use the passed io.Reader sig, err := ld.Signer.Sign(rand.Reader, leaf, crypto.Hash(0)) -- cgit v1.2.3