crypto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

type SecureString

type SecureString struct {
	// contains filtered or unexported fields
}

func NewSecureString

func NewSecureString(passphrase string) (*SecureString, error)

NewSecureString from string

func (*SecureString) Bytes

func (ss *SecureString) Bytes() []byte

Bytes get bytes from string

func (*SecureString) Destroy

func (ss *SecureString) Destroy()

Destroy string buffer

Directories

Path Synopsis
Package ed25519 implements the Ed25519 signature algorithm.
Package ed25519 implements the Ed25519 signature algorithm.
Package random provides some functions to securely generate random bytes and numbers.
Package random provides some functions to securely generate random bytes and numbers.

Jump to

Keyboard shortcuts

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