From 0380f7f91c831af18e37414afcdf30935b4b4ee9 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 10 Jan 2023 17:38:46 +0100 Subject: fix ed25519 key function The private key for ed25519 never returned crypto.PrivateKey. This caused the generation of certificates to not work and may also have resulted in other issues. --- ed25519.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ed25519.go') diff --git a/ed25519.go b/ed25519.go index 0104beb..c616e70 100644 --- a/ed25519.go +++ b/ed25519.go @@ -45,9 +45,9 @@ func LoadPrivateKeyEd25519(raw []byte) (*Ed25519PrivateKey, error) { return &Ed25519PrivateKey{pr_loaded}, nil } -// TODO implement the raw API for the private key +// PrivateKey returns the private key. func (pr *Ed25519PrivateKey) PrivateKey() crypto.PrivateKey { - return nil + return pr.private_key } // Return the public key for this private key. -- cgit v1.2.3-70-g09d2