crypto-pubkey-0.2.6: Public Key cryptography

Safe HaskellNone
LanguageHaskell98

Crypto.PubKey.ECC.Prim

Description

Elliptic Curve Arithmetic.

WARNING: These functions are vulnerable to timing attacks.

Synopsis

Documentation

pointAdd :: Curve -> Point -> Point -> Point Source

Elliptic Curve point addition.

WARNING: Vulnerable to timing attacks.

pointDouble :: Curve -> Point -> Point Source

Elliptic Curve point doubling.

WARNING: Vulnerable to timing attacks.

pointMul :: Curve -> Integer -> Point -> Point Source

Elliptic curve point multiplication (double and add algorithm).

WARNING: Vulnerable to timing attacks.

isPointAtInfinity :: Point -> Bool Source

Check if a point is the point at infinity.