square

package
v1.0.2040 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 32
View Source
const R = 8 /* number of rounds	  */
View Source
const ROOT = 0x1f5 /* polynomial for generating GF(2^8) */

Variables

View Source
var S_GAMMA = [0x100]uint16{}/* 256 elements not displayed */

Functions

func NewCipher

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

NewCipher creates and returns a new cipher.Block.

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