From f5ecaf4460d3e462e4e0ff40e4f7705184d2c576 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 27 Aug 2021 08:39:08 -0700 Subject: [PATCH] test: don't try to marshal ed25519 to PEM --- key_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/key_test.go b/key_test.go index 82129da..2038a2e 100644 --- a/key_test.go +++ b/key_test.go @@ -190,9 +190,6 @@ func TestGenerateEd25519(t *testing.T) { if _, err = key.MarshalPKIXPublicKeyPEM(); err != nil { t.Fatal(err) } - if _, err = key.MarshalPKCS1PrivateKeyPEM(); err != nil { - t.Fatal(err) - } } func TestSign(t *testing.T) { @@ -431,9 +428,7 @@ func TestMarshalEd25519(t *testing.T) { t.Fatal("invalid cert pem bytes") } - if _, err = key.MarshalPKCS1PrivateKeyPEM(); err != nil { - t.Fatal(err) - } + // NOTE: Ed25519 cannot be marshalled to PEM. if _, err := key.MarshalPKCS1PrivateKeyDER(); err != nil { t.Fatal(err)