Documentation ¶
Index ¶
- func AddNamedCurve(curve elliptic.Curve, oid asn1.ObjectIdentifier)
- func MarshalPrivateKey(key *ecdsa.PrivateKey) ([]byte, error)
- func MarshalPublicKey(pub *ecdsa.PublicKey) ([]byte, error)
- func NamedCurveFromOid(oid asn1.ObjectIdentifier) elliptic.Curve
- func OidFromNamedCurve(curve elliptic.Curve) (asn1.ObjectIdentifier, bool)
- func ParsePrivateKey(derBytes []byte) (*ecdsa.PrivateKey, error)
- func ParsePublicKey(derBytes []byte) (pub *ecdsa.PublicKey, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNamedCurve ¶
func AddNamedCurve(curve elliptic.Curve, oid asn1.ObjectIdentifier)
func NamedCurveFromOid ¶
func NamedCurveFromOid(oid asn1.ObjectIdentifier) elliptic.Curve
func OidFromNamedCurve ¶
func OidFromNamedCurve(curve elliptic.Curve) (asn1.ObjectIdentifier, bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.