go-libp2p-crypto: github.com/libp2p/go-libp2p-crypto Index | Files | Directories

package crypto

import "github.com/libp2p/go-libp2p-crypto"

Deprecated: use github.com/libp2p/go-libp2p-core/crypto instead.

Index

Package Files

ecdsa_deprecated.go ed25519_deprecated.go key_deprecated.go rsa_deprecated.go secp256k1_deprecated.go

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.

func ConfigDecodeKey Uses

func ConfigDecodeKey(b string) ([]byte, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ConfigDecodeKey instead.

func ConfigEncodeKey Uses

func ConfigEncodeKey(b []byte) string

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ConfigEncodeKey instead.

func ECDSAKeyPairFromKey Uses

func ECDSAKeyPairFromKey(priv *ecdsa.PrivateKey) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSAKeyPairFromKey instead.

func GenerateECDSAKeyPair Uses

func GenerateECDSAKeyPair(src io.Reader) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateECDSAKeyPair instead.

func GenerateECDSAKeyPairWithCurve Uses

func GenerateECDSAKeyPairWithCurve(curve elliptic.Curve, src io.Reader) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateECDSAKeyPairWithCurve instead.

func GenerateEd25519Key Uses

func GenerateEd25519Key(src io.Reader) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateEd25519Key instead.

func GenerateKeyPair Uses

func GenerateKeyPair(typ, bits int) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateKeyPair instead.

func GenerateKeyPairWithReader Uses

func GenerateKeyPairWithReader(typ, bits int, src io.Reader) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateKeyPairWithReader instead.

func GenerateRSAKeyPair Uses

func GenerateRSAKeyPair(bits int, src io.Reader) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateRSAKeyPair instead.

func GenerateSecp256k1Key Uses

func GenerateSecp256k1Key(src io.Reader) (PrivKey, PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateSecp256k1Key instead.

func KeyEqual Uses

func KeyEqual(k1, k2 Key) bool

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.KeyEqual instead.

func KeyStretcher Uses

func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedKeys, StretchedKeys)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.KeyStretcher instead.

func MarshalECDSAPrivateKey Uses

func MarshalECDSAPrivateKey(ePriv ECDSAPrivateKey) ([]byte, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.MarshalECDSAPrivateKey instead.

func MarshalECDSAPublicKey Uses

func MarshalECDSAPublicKey(ePub ECDSAPublicKey) ([]byte, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.MarshalECDSAPublicKey instead.

func MarshalPrivateKey Uses

func MarshalPrivateKey(k PrivKey) ([]byte, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.MarshalPrivateKey instead.

func MarshalPublicKey Uses

func MarshalPublicKey(k PubKey) ([]byte, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.MarshalPublicKey instead.

type ECDSAPrivateKey Uses

type ECDSAPrivateKey = core.ECDSAPrivateKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSAPrivateKey instead.

type ECDSAPublicKey Uses

type ECDSAPublicKey = core.ECDSAPublicKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSAPublicKey instead.

type ECDSASig Uses

type ECDSASig = core.ECDSASig

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.ECDSASig instead.

type Ed25519PrivateKey Uses

type Ed25519PrivateKey = core.Ed25519PrivateKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Ed25519PrivateKey instead.

type Ed25519PublicKey Uses

type Ed25519PublicKey = core.Ed25519PublicKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Ed25519PublicKey instead.

type GenSharedKey Uses

type GenSharedKey = core.GenSharedKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenSharedKey instead.

func GenerateEKeyPair Uses

func GenerateEKeyPair(curveName string) ([]byte, GenSharedKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenerateEKeyPair instead.

type Key Uses

type Key = core.Key

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Key instead.

type PrivKey Uses

type PrivKey = core.PrivKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PrivKey instead.

func UnmarshalECDSAPrivateKey Uses

func UnmarshalECDSAPrivateKey(data []byte) (PrivKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalECDSAPrivateKey instead.

func UnmarshalEd25519PrivateKey Uses

func UnmarshalEd25519PrivateKey(data []byte) (PrivKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalEd25519PrivateKey instead.

func UnmarshalPrivateKey Uses

func UnmarshalPrivateKey(data []byte) (PrivKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalPrivateKey instead.

func UnmarshalRsaPrivateKey Uses

func UnmarshalRsaPrivateKey(b []byte) (PrivKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalRsaPrivateKey instead.

func UnmarshalSecp256k1PrivateKey Uses

func UnmarshalSecp256k1PrivateKey(data []byte) (PrivKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalSecp256k1PrivateKey instead.

type PrivKeyUnmarshaller Uses

type PrivKeyUnmarshaller = core.PrivKeyUnmarshaller

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PrivKeyUnmarshaller instead.

type PubKey Uses

type PubKey = core.PubKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PubKey instead.

func UnmarshalECDSAPublicKey Uses

func UnmarshalECDSAPublicKey(data []byte) (PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalECDSAPublicKey instead.

func UnmarshalEd25519PublicKey Uses

func UnmarshalEd25519PublicKey(data []byte) (PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalEd25519PublicKey instead.

func UnmarshalPublicKey Uses

func UnmarshalPublicKey(data []byte) (PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalPublicKey instead.

func UnmarshalRsaPublicKey Uses

func UnmarshalRsaPublicKey(b []byte) (PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalRsaPublicKey instead.

func UnmarshalSecp256k1PublicKey Uses

func UnmarshalSecp256k1PublicKey(data []byte) (PubKey, error)

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.UnmarshalSecp256k1PublicKey instead.

type PubKeyUnmarshaller Uses

type PubKeyUnmarshaller = core.PubKeyUnmarshaller

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.PubKeyUnmarshaller instead.

type RsaPrivateKey Uses

type RsaPrivateKey = core.RsaPrivateKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.RsaPrivateKey instead.

type RsaPublicKey Uses

type RsaPublicKey = core.RsaPublicKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.RsaPublicKey instead.

type Secp256k1PrivateKey Uses

type Secp256k1PrivateKey = core.Secp256k1PrivateKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Secp256k1PrivateKey instead.

type Secp256k1PublicKey Uses

type Secp256k1PublicKey = core.Secp256k1PublicKey

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.Secp256k1PublicKey instead.

type StretchedKeys Uses

type StretchedKeys = core.StretchedKeys

Deprecated: use github.com/libp2p/go-libp2p-core/crypto.GenSharedKey instead.

Directories

PathSynopsis
pbDeprecated: use github.com/libp2p/go-libp2p-core/crypto/pb instead.
testDeprecated: use github.com/libp2p/go-libp2p-core/test instead.

Package crypto imports 4 packages (graph) and is imported by 166 packages. Updated 2019-05-24. Refresh now. Tools for package owners.