Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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
DHParams | |
|
data DHParamError Source #
checkDHParams :: DHParams -> IO [DHParamError] Source #