spake2-0.2.0: Implementation of the SPAKE2 Password-Authenticated Key Exchange algorithm

Safe HaskellNone
LanguageHaskell2010

Crypto.Spake2.Groups

Description

Each of these implements the Group typeclass.

Synopsis

Documentation

data Ed25519 Source #

Constructors

Ed25519 

data IntegerGroup Source #

A finite group of integers with respect to multiplication modulo the group order.

Construct with makeIntegerGroup.

Constructors

IntegerGroup 

Instances

Eq IntegerGroup Source # 
Show IntegerGroup Source # 
AbelianGroup IntegerGroup Source # 
Group IntegerGroup Source # 
type Scalar IntegerGroup Source # 
type Element IntegerGroup Source # 

makeIntegerGroup :: Integer -> Integer -> Integer -> Maybe IntegerGroup Source #

Construct an IntegerGroup.

Will fail if generator is '1', since having the identity for a generator means the subgroup is the entire group.

TODO: Find other things to check for validity.