Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Add Show instances for EdDSA secret keys
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ocheron committed Jun 4, 2017
1 parent 3c89f0d commit 75e3bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Crypto/PubKey/Ed25519.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Crypto/PubKey/Ed448.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75e3bd5

Please sign in to comment.