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:
parent
3c89f0d0b7
commit
75e3bd555e
@ -42,7 +42,7 @@ import Crypto.Random
|
|||||||
|
|
||||||
-- | An Ed25519 Secret key
|
-- | An Ed25519 Secret key
|
||||||
newtype SecretKey = SecretKey ScrubbedBytes
|
newtype SecretKey = SecretKey ScrubbedBytes
|
||||||
deriving (Eq,ByteArrayAccess,NFData)
|
deriving (Show,Eq,ByteArrayAccess,NFData)
|
||||||
|
|
||||||
-- | An Ed25519 public key
|
-- | An Ed25519 public key
|
||||||
newtype PublicKey = PublicKey Bytes
|
newtype PublicKey = PublicKey Bytes
|
||||||
|
|||||||
@ -46,7 +46,7 @@ import Crypto.Random
|
|||||||
|
|
||||||
-- | An Ed448 Secret key
|
-- | An Ed448 Secret key
|
||||||
newtype SecretKey = SecretKey ScrubbedBytes
|
newtype SecretKey = SecretKey ScrubbedBytes
|
||||||
deriving (Eq,ByteArrayAccess,NFData)
|
deriving (Show,Eq,ByteArrayAccess,NFData)
|
||||||
|
|
||||||
-- | An Ed448 public key
|
-- | An Ed448 public key
|
||||||
newtype PublicKey = PublicKey Bytes
|
newtype PublicKey = PublicKey Bytes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user