diff options
Diffstat (limited to 'x509.go')
-rw-r--r-- | x509.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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)) |