cipher

package
v0.0.0-...-c3373df Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

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

Cipher is a struct for encoding and decoding ad mark

func NewCipherWithNonceSize

func NewCipherWithNonceSize(key []byte, nonceSize int) (*Cipher, error)

NewCipherWithNonceSize inits cipher

func (*Cipher) Decode

func (c *Cipher) Decode(data []byte) ([]byte, error)

Decode decodes the mark

func (*Cipher) Encode

func (c *Cipher) Encode(data []byte) ([]byte, error)

Encode encodes the mark

Jump to

Keyboard shortcuts

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