Add Show instances for EdDSA secret keys

Other algorithms define Show instances for their secrets.
Here ScrubbedBytes will obfuscate the content anyway.

Will be useful for X509.PrivKey, which requires a Show instance.
This commit is contained in:
Olivier Chéron 2017-04-03 19:32:50 +02:00
parent 3c89f0d0b7
commit 75e3bd555e
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ import Crypto.Random
-- | An Ed25519 Secret key
newtype SecretKey = SecretKey ScrubbedBytes
deriving (Eq,ByteArrayAccess,NFData)
deriving (Show,Eq,ByteArrayAccess,NFData)
-- | An Ed25519 public key
newtype PublicKey = PublicKey Bytes

View File

@ -46,7 +46,7 @@ import Crypto.Random
-- | An Ed448 Secret key
newtype SecretKey = SecretKey ScrubbedBytes
deriving (Eq,ByteArrayAccess,NFData)
deriving (Show,Eq,ByteArrayAccess,NFData)
-- | An Ed448 public key
newtype PublicKey = PublicKey Bytes