crypto

package
v2.10.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: GPL-3.0 Imports: 9 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCTRXOR

func AesCTRXOR(key, inText, iv []byte) ([]byte, error)

AesCTRXOR(plainText) = cipherText AesCTRXOR(cipherText) = plainText

func AesGCMDecrypt

func AesGCMDecrypt(key, cipherText, nonce []byte) ([]byte, error)

func AesGCMEncrypt

func AesGCMEncrypt(key, inText []byte) (outText, nonce []byte, err error)

func GetEntropyCSPRNG

func GetEntropyCSPRNG(n int) []byte

func Hash

func Hash(size int, data ...[]byte) []byte

func Hash256

func Hash256(data ...[]byte) []byte

func Hash512

func Hash512(data ...[]byte) []byte

func VerifySig

func VerifySig(pubkey ed25519.PublicKey, message, signdata []byte) (bool, error)

func X25519ComputeSecret added in v1.3.2

func X25519ComputeSecret(private []byte, peersPublic []byte) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis
Package ed25519 implements the Ed25519 signature algorithm.
Package ed25519 implements the Ed25519 signature algorithm.

Jump to

Keyboard shortcuts

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