crypto

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: GPL-3.0 Imports: 8 Imported by: 53

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)

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