openid-0.1.1.0: An implementation of the OpenID-2.0 spec.
Source code
Contents
Index
Codec.Encryption.DH
Contents
Diffie-Hellman key exchange
Synopsis
data
DHParams
=
DHParams
{
dhPrivateKey
:: [
Word8
]
dhPublicKey
:: [
Word8
]
dhGenerator
::
Generator
dhModulus
::
Modulus
}
data
DHParamError
=
PNotPrime
|
PNotSafePrime
|
UnableToCheckGenerator
|
NotSuitableGenerator
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
data
DHParams
Source
Constructors
DHParams
dhPrivateKey
:: [
Word8
]
dhPublicKey
:: [
Word8
]
dhGenerator
::
Generator
dhModulus
::
Modulus
Instances
Show
DHParams
data
DHParamError
Source
Constructors
PNotPrime
PNotSafePrime
UnableToCheckGenerator
NotSuitableGenerator
Instances
Show
DHParamError
type
Modulus
= Integer
Source
type
Generator
=
Int
Source
newDHParams
::
Int
->
Generator
->
IO
(
Maybe
DHParams
)
Source
checkDHParams
::
DHParams
->
IO
[
DHParamError
]
Source
generateKey
::
Modulus
->
Generator
->
IO
(
Maybe
DHParams
)
Source
computeKey
:: [
Word8
] ->
DHParams
-> [
Word8
]
Source
Produced by
Haddock
version 2.4.1