common

package
v0.0.0-...-66343a0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const KeyLength = 32
View Source
const NonceLength = 24

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key [KeyLength]byte

func KeyFromHex

func KeyFromHex(key string) (*Key, error)

func KeyFromSlice

func KeyFromSlice(key []byte) (*Key, error)

func KeyFromString

func KeyFromString(key string) (*Key, error)

func KeyFromURL

func KeyFromURL(url string) (*Key, error)

func (*Key) ToByte

func (k *Key) ToByte() *[KeyLength]byte

type Nonce

type Nonce [NonceLength]byte

func NonceFromSlice

func NonceFromSlice(nonce []byte) (*Nonce, error)

func (*Nonce) ToByte

func (n *Nonce) ToByte() *[NonceLength]byte

Jump to

Keyboard shortcuts

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