Back to godoc.org
github.com/libp2p/go-libp2p-crypto

package crypto

v0.1.0
Latest Go to latest
Published: May 23, 2019 | License: MIT | Module: github.com/libp2p/go-libp2p-crypto

Overview

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

Index

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

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

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

func ConfigEncodeKey

func ConfigEncodeKey(b []byte) string

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

func ECDSAKeyPairFromKey

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

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

func GenerateECDSAKeyPair

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

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

func GenerateECDSAKeyPairWithCurve

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

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

func GenerateEd25519Key

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

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

func GenerateKeyPair

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

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

func GenerateKeyPairWithReader

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

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

func GenerateRSAKeyPair

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

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

func GenerateSecp256k1Key

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

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

func KeyEqual

func KeyEqual(k1, k2 Key) bool

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

func KeyStretcher

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

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

func MarshalECDSAPrivateKey

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

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

func MarshalECDSAPublicKey

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

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

func MarshalPrivateKey

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

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

func MarshalPublicKey

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

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

type ECDSAPrivateKey

type ECDSAPrivateKey = core.ECDSAPrivateKey

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

type ECDSAPublicKey

type ECDSAPublicKey = core.ECDSAPublicKey

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

type ECDSASig

type ECDSASig = core.ECDSASig

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

type Ed25519PrivateKey

type Ed25519PrivateKey = core.Ed25519PrivateKey

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

type Ed25519PublicKey

type Ed25519PublicKey = core.Ed25519PublicKey

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

type GenSharedKey

type GenSharedKey = core.GenSharedKey

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

func GenerateEKeyPair

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

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

type Key

type Key = core.Key

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

type PrivKey

type PrivKey = core.PrivKey

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

func UnmarshalECDSAPrivateKey

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

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

func UnmarshalEd25519PrivateKey

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

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

func UnmarshalPrivateKey

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

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

func UnmarshalRsaPrivateKey

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

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

func UnmarshalSecp256k1PrivateKey

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

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

type PrivKeyUnmarshaller

type PrivKeyUnmarshaller = core.PrivKeyUnmarshaller

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

type PubKey

type PubKey = core.PubKey

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

func UnmarshalECDSAPublicKey

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

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

func UnmarshalEd25519PublicKey

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

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

func UnmarshalPublicKey

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

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

func UnmarshalRsaPublicKey

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

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

func UnmarshalSecp256k1PublicKey

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

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

type PubKeyUnmarshaller

type PubKeyUnmarshaller = core.PubKeyUnmarshaller

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

type RsaPrivateKey

type RsaPrivateKey = core.RsaPrivateKey

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

type RsaPublicKey

type RsaPublicKey = core.RsaPublicKey

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

type Secp256k1PrivateKey

type Secp256k1PrivateKey = core.Secp256k1PrivateKey

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

type Secp256k1PublicKey

type Secp256k1PublicKey = core.Secp256k1PublicKey

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

type StretchedKeys

type StretchedKeys = core.StretchedKeys

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier