Safe Haskell | None |
---|
Codec.Encryption.DH
Contents
- data DHParams = DHParams {
- dhPrivateKey :: [Word8]
- dhPublicKey :: [Word8]
- dhGenerator :: Generator
- dhModulus :: Modulus
- data DHParamError
- type Modulus = Integer
- type Generator = Int
- newDHParams :: Int -> Generator -> IO (Maybe DHParams)
- checkDHParams :: DHParams -> IO [DHParamError]
- generateKey :: Modulus -> Generator -> IO (Maybe DHParams)
- computeKey :: [Word8] -> DHParams -> [Word8]
Diffie-Hellman key exchange
Constructors
DHParams | |
Fields
|
data DHParamError Source
Instances
checkDHParams :: DHParams -> IO [DHParamError]Source
computeKey :: [Word8] -> DHParams -> [Word8]Source