nonce

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package nonce provides a simple interface for generating standard AES encryption nonces that give strong cryptographic entropy to message encryption.

Index

Constants

View Source
const IDLen = 8
View Source
const IVLen = aes.BlockSize

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID [IDLen]byte

ID is a value generated by a hash chain that renews at first use and every time it generates 65536 new ID's.

func NewID

func NewID() (t ID)

NewID returns a random 8 byte nonce to be used as identifiers.

type IV

type IV [IVLen]byte

func New

func New() (n IV)

New reads a nonce from a cryptographically secure random number source

Jump to

Keyboard shortcuts

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