nonce

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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

func NewID

func NewID() (t ID)

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