trivium

package
v1.0.2069 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCipher

func NewCipher(key []byte, iv []byte) (cipher.Stream, error)

NewCipher creates and returns a new cipher.Stream.

func TRIVIUM_GET_BIT

func TRIVIUM_GET_BIT(s []uint8, n int) uint8

func TRIVIUM_SET_BIT

func TRIVIUM_SET_BIT(s []uint8, n int, v uint8)

Set a given bit of the internal state

Types

type IVSizeError

type IVSizeError int

func (IVSizeError) Error

func (k IVSizeError) Error() string

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Jump to

Keyboard shortcuts

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