Diffie-Hellman key exchange
- data DHP
- data DH
- data DHGen
- genDHParams :: DHGen -> Int -> IO DHP
- getDHLength :: DHP -> IO Int
- checkDHParams :: DHP -> IO Bool
- genDH :: DHP -> IO DH
- getDHParams :: DH -> DHP
- getDHPublicKey :: DH -> IO Integer
- computeDHKey :: DH -> Integer -> IO ByteString
Documentation
genDHParams :: DHGen -> Int -> IO DHPSource
generates genDHParams
gen nn
-bit long DH parameters.
getDHLength :: DHP -> IO IntSource
Get DH parameters length (in bits).
checkDHParams :: DHP -> IO BoolSource
Check that DH parameters are coherent.
getDHParams :: DH -> DHPSource
Get parameters of a key exchange.
getDHPublicKey :: DH -> IO IntegerSource
Get the public key.
computeDHKey :: DH -> Integer -> IO ByteStringSource
Compute the shared key using the other party's public key.