eccrypto-0.1.0: Elliptic Curve Cryptography for Haskell

Copyright(c) Marcel Fourné 20[09..]
LicenseBSD3
MaintainerMarcel Fourné (haskell@marcelfourne.de)
Stabilitybeta
PortabilityGood
Safe HaskellSafe
LanguageHaskell98

Crypto.ECC.Weierstrass.Internal

Description

quasi-safe re-exports

Synopsis

Documentation

type FPrime = Integer Source #

a simple wrapper to ease transition

data EC a Source #

all Elliptic Curves, the parameters being the BitLength L, A, B and P

Instances
Eq (EC a) Source # 
Instance details

Defined in Crypto.ECC.Weierstrass.Internal.Curvemath

Methods

(==) :: EC a -> EC a -> Bool #

(/=) :: EC a -> EC a -> Bool #

Show (EC a) Source # 
Instance details

Defined in Crypto.ECC.Weierstrass.Internal.Curvemath

Methods

showsPrec :: Int -> EC a -> ShowS #

show :: EC a -> String #

showList :: [EC a] -> ShowS #

data ECPF a Source #

data of Elliptic Curve Points

Instances
Eq (ECPF a) Source # 
Instance details

Defined in Crypto.ECC.Weierstrass.Internal.Curvemath

Methods

(==) :: ECPF a -> ECPF a -> Bool #

(/=) :: ECPF a -> ECPF a -> Bool #

Show (ECPF a) Source # 
Instance details

Defined in Crypto.ECC.Weierstrass.Internal.Curvemath

Methods

showsPrec :: Int -> ECPF a -> ShowS #

show :: ECPF a -> String #

showList :: [ECPF a] -> ShowS #

affine :: EC a -> ECPF a -> (Integer, Integer) Source #

generic getter, returning the affine x and y-value

export :: EC a -> ECPF a -> (Integer, Integer) Source #

translate point in internal format to a pair of Integers in affine x and y coordinate | this is intended as interface to other libraries

padd :: EC a -> ECPF a -> ECPF a -> ECPF a Source #

add 2 elliptic points

pdouble :: EC a -> ECPF a -> ECPF a Source #

add an elliptic point onto itself, base for padd a a

pmul :: EC a -> ECPF a -> FPrime -> ECPF a Source #

Point Multiplication.

ison :: EC a -> ECPF a -> Bool Source #

"generic" verify, if generic ECP is on EC via getxA and getyA

isinf :: EC a -> ECPF a -> Bool Source #

internal function, codifies point at infinity, is used in comparisons