x509-1.7.7: X509 reader and writer

License | BSD-style
Maintainer | Vincent Hanquez <vincent@snarc.org>
Stability | experimental
Portability | unknown
Safe Haskell | None
Language | Haskell2010

Data.X509.EC

Description

Utilities related to Elliptic Curve certificates and keys.

Synopsis

- unserializePoint :: Curve -> SerializedPoint -> Maybe Point
- ecPubKeyCurve :: PubKeyEC -> Maybe Curve
- ecPubKeyCurveName :: PubKeyEC -> Maybe CurveName
- ecPrivKeyCurve :: PrivKeyEC -> Maybe Curve
- ecPrivKeyCurveName :: PrivKeyEC -> Maybe CurveName
- lookupCurveNameByOID :: OID -> Maybe CurveName

# Documentation

unserializePoint :: Curve -> SerializedPoint -> Maybe Point Source #

Read an EC point from a serialized format and make sure the point is valid for the specified curve.

ecPubKeyCurve :: PubKeyEC -> Maybe Curve Source #

Return the curve associated to an EC Public Key. This does not check if a curve in explicit format is valid: if the input is not trusted one should consider `ecPubKeyCurveName` instead.

ecPubKeyCurveName :: PubKeyEC -> Maybe CurveName Source #

Return the name of a standard curve associated to an EC Public Key

ecPrivKeyCurve :: PrivKeyEC -> Maybe Curve Source #

Return the EC curve associated to an EC Private Key. This does not check if a curve in explicit format is valid: if the input is not trusted one should consider `ecPrivKeyCurveName` instead.

ecPrivKeyCurveName :: PrivKeyEC -> Maybe CurveName Source #

Return the name of a standard curve associated to an EC Private Key

lookupCurveNameByOID :: OID -> Maybe CurveName Source #

Return the curve name associated to an OID