A Curve25519 Secret key
Modulecrypton-1.0.4Haskell2010
Crypto.PubKey.Curve25519
Curve25519 support
- 3 types
- 6 values
- Packagecrypton-1.0.4
- Exports9
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCurve25519.hs
A Curve25519 public key
Instances4Eq, Show, NFData, ByteArrayAccess
A Curve25519 Diffie Hellman secret related to a public key and a secret key.
Instances4Eq, Show, NFData, ByteArrayAccess
Smart constructors
3 declarationsCreate a DhSecret from a bytearray object
Try to build a public key from a bytearray
Try to build a secret key from a bytearray
Methods
3 declarationsCompute the Diffie Hellman secret from a public key and a secret key.
This implementation may return an all-zero value as it does not check for the condition.
Create a public key from a secret key
Generate a secret key.