Documentation ¶
Index ¶
Constants ¶
View Source
const (
BlockSize = 16
)
View Source
const NUM_SUBKEYS = 48
View Source
const PERMUTATION_SIZE = 0x100
256
View Source
const (
ROUNDS = 16
)
View Source
const S1_GEN = 0x2911 // 10513
View Source
const S1_SIZE = 0x2000 // 8192
View Source
const S2_GEN = 0xAA7 // 2727
View Source
const S2_SIZE = 0x800 // 2048
Variables ¶
View Source
var ( S1 [S1_SIZE]byte S2 [S2_SIZE]byte P [PERMUTATION_SIZE]ULONG64 )
View Source
var DELTA = ULONG64{0x9E3779B9, 0x7F4A7C15}
Functions ¶
func NewCipher ¶
NewCipher creates and returns a new cipher.Block. data bytes use BigEndian, if is LittleEndian please change BigEndian bytes
func ULONG64ToBYTE ¶
Types ¶
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.