License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Curve25519 support
- data SecretKey
- data PublicKey
- data DhSecret
- dhSecret :: ByteArrayAccess b => b -> Either String DhSecret
- publicKey :: ByteArrayAccess bs => bs -> Either String PublicKey
- secretKey :: ByteArrayAccess bs => bs -> Either String SecretKey
- dh :: PublicKey -> SecretKey -> DhSecret
- toPublic :: SecretKey -> PublicKey
Documentation
A Curve25519 Secret key
A Curve25519 public key
A Curve25519 Diffie Hellman secret related to a public key and a secret key.
Smart constructors
dhSecret :: ByteArrayAccess b => b -> Either String DhSecret Source
Create a DhSecret from a bytearray object
publicKey :: ByteArrayAccess bs => bs -> Either String PublicKey Source
Try to build a public key from a bytearray
secretKey :: ByteArrayAccess bs => bs -> Either String SecretKey Source
Try to build a secret key from a bytearray