crypto

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	KeyVersion = 'T'
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(secret, b []byte) []byte

func DecryptECDH added in v0.2.1

func DecryptECDH(pub kyber.Point, priv kyber.Scalar, b []byte) []byte

func Encrypt

func Encrypt(secret, b []byte) []byte

func EncryptECDH added in v0.2.1

func EncryptECDH(pub kyber.Point, priv kyber.Scalar, b []byte) []byte

func PrivateKeyBytes

func PrivateKeyBytes(scalar kyber.Scalar) []byte

func PrivateKeyFromHex

func PrivateKeyFromHex(s string) (kyber.Scalar, error)

func PubKeyFromBase58

func PubKeyFromBase58(s string) (kyber.Point, error)

func PubKeyFromBytes

func PubKeyFromBytes(b []byte) (kyber.Point, error)

func PublicKey

func PublicKey(scalar kyber.Scalar) kyber.Point

func PublicKeyBytes

func PublicKeyBytes(point kyber.Point) []byte

func PublicKeyString

func PublicKeyString(point kyber.Point) string

func Sign

func Sign(scalar kyber.Scalar, msg []byte) ([]byte, error)

func Verify

func Verify(pub kyber.Point, msg, sig []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL