Documentation ¶
Overview ¶
Deprecated: use github.com/libp2p/go-libp2p-core/crypto instead.
Index ¶
- Constants
- Variables
- func ConfigDecodeKey(b string) ([]byte, error)deprecated
- func ConfigEncodeKey(b []byte) stringdeprecated
- func ECDSAKeyPairFromKey(priv *ecdsa.PrivateKey) (PrivKey, PubKey, error)deprecated
- func GenerateECDSAKeyPair(src io.Reader) (PrivKey, PubKey, error)deprecated
- func GenerateECDSAKeyPairWithCurve(curve elliptic.Curve, src io.Reader) (PrivKey, PubKey, error)deprecated
- func GenerateEd25519Key(src io.Reader) (PrivKey, PubKey, error)deprecated
- func GenerateKeyPair(typ, bits int) (PrivKey, PubKey, error)deprecated
- func GenerateKeyPairWithReader(typ, bits int, src io.Reader) (PrivKey, PubKey, error)deprecated
- func GenerateRSAKeyPair(bits int, src io.Reader) (PrivKey, PubKey, error)deprecated
- func GenerateSecp256k1Key(src io.Reader) (PrivKey, PubKey, error)deprecated
- func KeyEqual(k1, k2 Key) booldeprecated
- func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedKeys, StretchedKeys)deprecated
- func MarshalECDSAPrivateKey(ePriv ECDSAPrivateKey) ([]byte, error)deprecated
- func MarshalECDSAPublicKey(ePub ECDSAPublicKey) ([]byte, error)deprecated
- func MarshalPrivateKey(k PrivKey) ([]byte, error)deprecated
- func MarshalPublicKey(k PubKey) ([]byte, error)deprecated
- type ECDSAPrivateKeydeprecated
- type ECDSAPublicKeydeprecated
- type ECDSASigdeprecated
- type Ed25519PrivateKeydeprecated
- type Ed25519PublicKeydeprecated
- type GenSharedKeydeprecated
- type Keydeprecated
- type PrivKeydeprecated
- func UnmarshalECDSAPrivateKey(data []byte) (PrivKey, error)deprecated
- func UnmarshalEd25519PrivateKey(data []byte) (PrivKey, error)deprecated
- func UnmarshalPrivateKey(data []byte) (PrivKey, error)deprecated
- func UnmarshalRsaPrivateKey(b []byte) (PrivKey, error)deprecated
- func UnmarshalSecp256k1PrivateKey(data []byte) (PrivKey, error)deprecated
- type PrivKeyUnmarshallerdeprecated
- type PubKeydeprecated
- func UnmarshalECDSAPublicKey(data []byte) (PubKey, error)deprecated
- func UnmarshalEd25519PublicKey(data []byte) (PubKey, error)deprecated
- func UnmarshalPublicKey(data []byte) (PubKey, error)deprecated
- func UnmarshalRsaPublicKey(b []byte) (PubKey, error)deprecated
- func UnmarshalSecp256k1PublicKey(data []byte) (PubKey, error)deprecated
- type PubKeyUnmarshallerdeprecated
- type RsaPrivateKeydeprecated
- type RsaPublicKeydeprecated
- type Secp256k1PrivateKeydeprecated
- type Secp256k1PublicKeydeprecated
- type StretchedKeysdeprecated
Constants ¶
const ( // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.RSA instead. RSA = core.RSA // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Ed25519 instead. Ed25519 = core.Ed25519 // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Secp256k1 instead. Secp256k1 = core.Secp256k1 // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSA instead. ECDSA = core.ECDSA )
Variables ¶
var ( // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ErrNotECDSAPubKey instead. ErrNotECDSAPubKey = core.ErrNotECDSAPubKey // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ErrNilSig instead. ErrNilSig = core.ErrNilSig // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ErrNilPrivateKey instead. ErrNilPrivateKey = core.ErrNilPrivateKey // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSACurve instead. ECDSACurve = core.ECDSACurve )
var ( // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ErrBadKeyType instead. ErrBadKeyType = core.ErrBadKeyType // Deprecated: use github.com/libp2p/go-libp2p-core/crypto.KeyTypes instead. KeyTypes = core.KeyTypes )
var ErrRsaKeyTooSmall = core.ErrRsaKeyTooSmall
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ErrRsaKeyTooSmall instead.
var PrivKeyUnmarshallers = core.PrivKeyUnmarshallers
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PrivKeyUnmarshallers instead.
var PubKeyUnmarshallers = core.PubKeyUnmarshallers
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PubKeyUnmarshallers instead.
Functions ¶
func ConfigDecodeKey
deprecated
func ConfigEncodeKey
deprecated
func ECDSAKeyPairFromKey
deprecated
func ECDSAKeyPairFromKey(priv *ecdsa.PrivateKey) (PrivKey, PubKey, error)
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSAKeyPairFromKey instead.
func GenerateKeyPair
deprecated
func KeyStretcher
deprecated
func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedKeys, StretchedKeys)
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.KeyStretcher instead.
func MarshalECDSAPrivateKey
deprecated
func MarshalECDSAPrivateKey(ePriv ECDSAPrivateKey) ([]byte, error)
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.MarshalECDSAPrivateKey instead.
func MarshalECDSAPublicKey
deprecated
func MarshalECDSAPublicKey(ePub ECDSAPublicKey) ([]byte, error)
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.MarshalECDSAPublicKey instead.
func MarshalPrivateKey
deprecated
func MarshalPublicKey
deprecated
Types ¶
type ECDSAPrivateKey
deprecated
type ECDSAPrivateKey = core.ECDSAPrivateKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSAPrivateKey instead.
type ECDSAPublicKey
deprecated
type ECDSAPublicKey = core.ECDSAPublicKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSAPublicKey instead.
type Ed25519PrivateKey
deprecated
type Ed25519PrivateKey = core.Ed25519PrivateKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Ed25519PrivateKey instead.
type Ed25519PublicKey
deprecated
type Ed25519PublicKey = core.Ed25519PublicKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Ed25519PublicKey instead.
type GenSharedKey
deprecated
type GenSharedKey = core.GenSharedKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenSharedKey instead.
func GenerateEKeyPair
deprecated
func GenerateEKeyPair(curveName string) ([]byte, GenSharedKey, error)
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateEKeyPair instead.
type PrivKey
deprecated
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PrivKey instead.
func UnmarshalECDSAPrivateKey
deprecated
func UnmarshalEd25519PrivateKey
deprecated
func UnmarshalPrivateKey
deprecated
func UnmarshalRsaPrivateKey
deprecated
func UnmarshalSecp256k1PrivateKey
deprecated
type PrivKeyUnmarshaller
deprecated
type PrivKeyUnmarshaller = core.PrivKeyUnmarshaller
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PrivKeyUnmarshaller instead.
type PubKey
deprecated
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PubKey instead.
func UnmarshalECDSAPublicKey
deprecated
func UnmarshalEd25519PublicKey
deprecated
func UnmarshalPublicKey
deprecated
func UnmarshalRsaPublicKey
deprecated
func UnmarshalSecp256k1PublicKey
deprecated
type PubKeyUnmarshaller
deprecated
type PubKeyUnmarshaller = core.PubKeyUnmarshaller
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PubKeyUnmarshaller instead.
type RsaPrivateKey
deprecated
type RsaPrivateKey = core.RsaPrivateKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.RsaPrivateKey instead.
type RsaPublicKey
deprecated
type RsaPublicKey = core.RsaPublicKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.RsaPublicKey instead.
type Secp256k1PrivateKey
deprecated
type Secp256k1PrivateKey = core.Secp256k1PrivateKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Secp256k1PrivateKey instead.
type Secp256k1PublicKey
deprecated
type Secp256k1PublicKey = core.Secp256k1PublicKey
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Secp256k1PublicKey instead.
type StretchedKeys
deprecated
type StretchedKeys = core.StretchedKeys
Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenSharedKey instead.