Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + const ECDSA + const Ed25519 + const RSA + const Secp256k1 + var ECDSACurve = core.ECDSACurve + var ErrBadKeyType = core.ErrBadKeyType + var ErrNilPrivateKey = core.ErrNilPrivateKey + var ErrNilSig = core.ErrNilSig + var ErrNotECDSAPubKey = core.ErrNotECDSAPubKey + var ErrRsaKeyTooSmall = core.ErrRsaKeyTooSmall + var KeyTypes = core.KeyTypes + var PrivKeyUnmarshallers = core.PrivKeyUnmarshallers + var PubKeyUnmarshallers = core.PubKeyUnmarshallers + func ConfigDecodeKey(b string) ([]byte, error) + func ConfigEncodeKey(b []byte) string + func ECDSAKeyPairFromKey(priv *ecdsa.PrivateKey) (PrivKey, PubKey, error) + func GenerateECDSAKeyPair(src io.Reader) (PrivKey, PubKey, error) + func GenerateECDSAKeyPairWithCurve(curve elliptic.Curve, src io.Reader) (PrivKey, PubKey, error) + func GenerateEd25519Key(src io.Reader) (PrivKey, PubKey, error) + func GenerateKeyPair(typ, bits int) (PrivKey, PubKey, error) + func GenerateKeyPairWithReader(typ, bits int, src io.Reader) (PrivKey, PubKey, error) + func GenerateRSAKeyPair(bits int, src io.Reader) (PrivKey, PubKey, error) + func GenerateSecp256k1Key(src io.Reader) (PrivKey, PubKey, error) + func KeyEqual(k1, k2 Key) bool + func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedKeys, StretchedKeys) + func MarshalECDSAPrivateKey(ePriv ECDSAPrivateKey) ([]byte, error) + func MarshalECDSAPublicKey(ePub ECDSAPublicKey) ([]byte, error) + func MarshalPrivateKey(k PrivKey) ([]byte, error) + func MarshalPublicKey(k PubKey) ([]byte, error) + type ECDSAPrivateKey = core.ECDSAPrivateKey + type ECDSAPublicKey = core.ECDSAPublicKey + type ECDSASig = core.ECDSASig + type Ed25519PrivateKey = core.Ed25519PrivateKey + type Ed25519PublicKey = core.Ed25519PublicKey + type GenSharedKey = core.GenSharedKey + func GenerateEKeyPair(curveName string) ([]byte, GenSharedKey, error) + type Key = core.Key + type PrivKey = core.PrivKey + func UnmarshalECDSAPrivateKey(data []byte) (PrivKey, error) + func UnmarshalEd25519PrivateKey(data []byte) (PrivKey, error) + func UnmarshalPrivateKey(data []byte) (PrivKey, error) + func UnmarshalRsaPrivateKey(b []byte) (PrivKey, error) + func UnmarshalSecp256k1PrivateKey(data []byte) (PrivKey, error) + type PrivKeyUnmarshaller = core.PrivKeyUnmarshaller + type PubKey = core.PubKey + func UnmarshalECDSAPublicKey(data []byte) (PubKey, error) + func UnmarshalEd25519PublicKey(data []byte) (PubKey, error) + func UnmarshalPublicKey(data []byte) (PubKey, error) + func UnmarshalRsaPublicKey(b []byte) (PubKey, error) + func UnmarshalSecp256k1PublicKey(data []byte) (PubKey, error) + type PubKeyUnmarshaller = core.PubKeyUnmarshaller + type RsaPrivateKey = core.RsaPrivateKey + type RsaPublicKey = core.RsaPublicKey + type Secp256k1PrivateKey = core.Secp256k1PrivateKey + type Secp256k1PublicKey = core.Secp256k1PublicKey + type StretchedKeys = core.StretchedKeys