Documentation ¶
Index ¶
- func ConstructPrivateKey(data []byte, curve elliptic.Curve) *ecdsa.PrivateKey
- func DecodePublicKey(data []byte, curve elliptic.Curve) (*ecdsa.PublicKey, error)
- func EncodePublicKey(key *ecdsa.PublicKey, compressed bool) []byte
- func GenerateECKeyPair(c elliptic.Curve, rand io.Reader, alg ECAlgorithm) (*PrivateKey, *PublicKey, error)
- type ECAlgorithm
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructPrivateKey ¶
func ConstructPrivateKey(data []byte, curve elliptic.Curve) *ecdsa.PrivateKey
func DecodePublicKey ¶
func GenerateECKeyPair ¶
func GenerateECKeyPair(c elliptic.Curve, rand io.Reader, alg ECAlgorithm) (*PrivateKey, *PublicKey, error)
Types ¶
type PrivateKey ¶
type PrivateKey struct { Algorithm ECAlgorithm *ecdsa.PrivateKey }
func (*PrivateKey) Public ¶
func (this *PrivateKey) Public() crypto.PublicKey
type PublicKey ¶
type PublicKey struct { Algorithm ECAlgorithm *ecdsa.PublicKey }
Click to show internal directories.
Click to hide internal directories.