HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Modulecryptonite-0.30Haskell2010

Crypto.PubKey.Curve25519

Curve25519 support

Contents
  1. Smart constructors
  2. Methods
Synopsis
  • Packagecryptonite-0.30
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCurve25519.hs
newtypenewtype DhSecret

A Curve25519 Diffie Hellman secret related to a public key and a secret key.

Instances4Eq, Show, NFData, ByteArrayAccess

Smart constructors

Methods

Compute 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.