square

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 16
View Source
const R = 8 /* number of rounds	  */

Variables

View Source
var Sd = [256]byte{}/* 256 elements not displayed */
View Source
var Se = [256]byte{}/* 256 elements not displayed */
View Source
var Td0 = [256]uint32{}/* 256 elements not displayed */
View Source
var Td1 = [256]uint32{}/* 256 elements not displayed */
View Source
var Td2 = [256]uint32{}/* 256 elements not displayed */
View Source
var Td3 = [256]uint32{}/* 256 elements not displayed */
View Source
var Te0 = [256]uint32{}/* 256 elements not displayed */
View Source
var Te1 = [256]uint32{}/* 256 elements not displayed */
View Source
var Te2 = [256]uint32{}/* 256 elements not displayed */
View Source
var Te3 = [256]uint32{}/* 256 elements not displayed */

Functions

func GETB0

func GETB0(x uint32) byte

func GETB1

func GETB1(x uint32) byte

func GETB2

func GETB2(x uint32) byte

func GETB3

func GETB3(x uint32) byte

func NewCipher

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

NewCipher creates and returns a new cipher.Block.

func PSI_ROTL

func PSI_ROTL(x, s uint32) uint32

func PSI_ROTR

func PSI_ROTR(x, s uint32) uint32

func PUTB0

func PUTB0(x byte) uint32

func PUTB1

func PUTB1(x byte) uint32

func PUTB2

func PUTB2(x byte) uint32

func PUTB3

func PUTB3(x byte) uint32

func ROTL

func ROTL(x, n uint32) uint32

func ROTR

func ROTR(x, n uint32) uint32

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