square

package
v1.0.4005 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 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 added in v1.0.2055

func GETB0(x uint32) byte

func GETB1 added in v1.0.2055

func GETB1(x uint32) byte

func GETB2 added in v1.0.2055

func GETB2(x uint32) byte

func GETB3 added in v1.0.2055

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 added in v1.0.2055

func PSI_ROTL(x, s uint32) uint32

func PSI_ROTR added in v1.0.2055

func PSI_ROTR(x, s uint32) uint32

func PUTB0 added in v1.0.2055

func PUTB0(x byte) uint32

func PUTB1 added in v1.0.2055

func PUTB1(x byte) uint32

func PUTB2 added in v1.0.2055

func PUTB2(x byte) uint32

func PUTB3 added in v1.0.2055

func PUTB3(x byte) uint32

func ROTL added in v1.0.2055

func ROTL(x, n uint32) uint32

func ROTR added in v1.0.2055

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