Documentation ¶
Index ¶
- Constants
- Variables
- func GETB0(x uint32) byte
- func GETB1(x uint32) byte
- func GETB2(x uint32) byte
- func GETB3(x uint32) byte
- func NewCipher(key []byte) (cipher.Block, error)
- func PSI_ROTL(x, s uint32) uint32
- func PSI_ROTR(x, s uint32) uint32
- func PUTB0(x byte) uint32
- func PUTB1(x byte) uint32
- func PUTB2(x byte) uint32
- func PUTB3(x byte) uint32
- func ROTL(x, n uint32) uint32
- func ROTR(x, n uint32) uint32
- type KeySizeError
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 ¶
Types ¶
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.