Documentation ¶
Index ¶
- func DecodePrivateKey(pemEncoded string) (*ecdsa.PrivateKey, error)
- func DecodePublicKey(pemEncoded string) (*ecdsa.PublicKey, error)
- func EncodePrivateKey(privateKey *ecdsa.PrivateKey) (string, error)
- func EncodePublicKey(publicKey *ecdsa.PublicKey) (string, error)
- func GeneratePrivateKey() (*ecdsa.PrivateKey, error)
- func GeneratePublicKey(privateKey *ecdsa.PrivateKey) *ecdsa.PublicKey
- func VerifyMessage(message string, publicKey *ecdsa.PublicKey, signature Signature) (bool, error)
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(pemEncoded string) (*ecdsa.PrivateKey, error)
func EncodePrivateKey ¶
func EncodePrivateKey(privateKey *ecdsa.PrivateKey) (string, error)
func GeneratePrivateKey ¶
func GeneratePrivateKey() (*ecdsa.PrivateKey, error)
GeneratePrivateKey : ecdsa.PrivateKey
func GeneratePublicKey ¶
func GeneratePublicKey(privateKey *ecdsa.PrivateKey) *ecdsa.PublicKey
GeneratePublicKey :
Types ¶
Click to show internal directories.
Click to hide internal directories.