Documentation
¶
Index ¶
- Constants
- func NewCipher(key []byte, rounds uint, wordSize uint) (cipher.Block, error)
- func NewCipher16(key []byte, rounds uint) (cipher.Block, error)
- func NewCipher32(key []byte, rounds uint) (cipher.Block, error)
- func NewCipher64(key []byte, rounds uint) (cipher.Block, error)
- func NewCipherBig(key []byte, rounds uint, wordSize uint) (cipher.Block, error)
- type KeySizeError
Constants ¶
View Source
const ( W16 = 16 // word size in bits WW16 = W16 / 8 // word size in bytes B16 = 32 // block size in bits BB16 = B16 / 8 // block size in bytes P16 = 0xb7e1 Q16 = 0x9e37 )
View Source
const ( W32 = 32 // word size in bits WW32 = W32 / 8 // word size in bytes B32 = 64 // block size in bits BB32 = B32 / 8 // block size in bytes P32 = 0xb7e15163 Q32 = 0x9e3779b9 )
View Source
const ( W64 = 64 // word size in bits WW64 = W64 / 8 // word size in bytes B64 = 128 // block size in bits BB64 = B64 / 8 // block size in bytes P64 = 0xb7e151628aed2a6b Q64 = 0x9e3779b97f4a7c15 )
Variables ¶
This section is empty.
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.