enigma

package
v1.0.4026 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultSeed int32 = 123
View Source
const MASK uint32 = 0377
View Source
const ROTORSZ int32 = 256

Variables

This section is empty.

Functions

func NewCipher

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

NewCipher creates and returns a new cipher.Stream.

func NewCipherWithSeed

func NewCipherWithSeed(key []byte, seed int32) (cipher.Stream, error)

NewCipherWithSeed creates and returns a new cipher.Stream.

Types

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