nonce

package
v0.0.0-...-3bed8bd Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NonceLength = 17

Variables

This section is empty.

Functions

This section is empty.

Types

type Nonce

type Nonce []byte

func Generate

func Generate() Nonce

Generate generates a nonce in this format:

01000001876bd0a2c0e571093967fce3d7
01                                 # version
  000001876d008cc5                 # UNIX time (ms)
                  r1r2r3r4r5r6r7r8 # random bytes

func (Nonce) WrapPayload

func (n Nonce) WrapPayload(payload []byte) NoncedPayload

type NoncedPayload

type NoncedPayload []byte

Jump to

Keyboard shortcuts

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