Documentation ¶
Index ¶
- func BytesToPrivKey(b []byte) *ecdsa.PrivateKey
- func BytesToPubKey(b []byte) (pub *ecdsa.PublicKey)
- func GenerateKeyPair() *ecdsa.PrivateKey
- func GenerateKeyPairWithSeed(seed []byte) *ecdsa.PrivateKey
- func PrivKeyToBytes(priv *ecdsa.PrivateKey) []byte
- func PubKeyToBytes(pub *ecdsa.PublicKey) []byte
- func Sign(priv *ecdsa.PrivateKey, plainBytes []byte) []byte
- func Verify(pub *ecdsa.PublicKey, plainBytes, cipherBytes []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToPrivKey ¶
func BytesToPrivKey(b []byte) *ecdsa.PrivateKey
func BytesToPubKey ¶
func GenerateKeyPair ¶
func GenerateKeyPair() *ecdsa.PrivateKey
func GenerateKeyPairWithSeed ¶
func GenerateKeyPairWithSeed(seed []byte) *ecdsa.PrivateKey
func PrivKeyToBytes ¶
func PrivKeyToBytes(priv *ecdsa.PrivateKey) []byte
func PubKeyToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.