HsOpenSSL-0.10.1.2: (Incomplete) OpenSSL binding for Haskell

OpenSSL.DH

Description

Diffie-Hellman key exchange

Synopsis

Documentation

data DHP Source

data DH Source

data DHGen Source

Constructors

DHGen2 
DHGen5 

Instances

genDHParams :: DHGen -> Int -> IO DHPSource

genDHParams gen n generates n-bit long DH parameters.

getDHLength :: DHP -> IO IntSource

Get DH parameters length (in bits).

checkDHParams :: DHP -> IO BoolSource

Check that DH parameters are coherent.

genDH :: DHP -> IO DHSource

The first step of a key exchange. Public and private keys are generated.

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.