crypton-x509-1.7.6: X509 reader and writer
LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.X509.EC

Description

Utilities related to Elliptic Curve certificates and keys.

Synopsis

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