Documentation ¶
Overview ¶
Package threefish implements the Threefish tweakable block cipher.
Index ¶
Constants ¶
View Source
const (
// Size of a 1024-bit block in bytes
BlockSize1024 = 128
)
View Source
const (
// Size of a 256-bit block in bytes
BlockSize256 = 32
)
View Source
const (
// Size of a 512-bit block in bytes
BlockSize512 = 64
)
Variables ¶
This section is empty.
Functions ¶
func New1024 ¶
New1024 creates a new Threefish cipher with a block size of 1024 bits. The key argument must be 64 bytes and the tweak argument must be 16 bytes.
Types ¶
type KeySizeError ¶
type KeySizeError int
A KeySizeError is returned when the provided key isn't the correct size.
type TweakSizeError ¶
type TweakSizeError struct{}
A TweakSizeError is returned when the provided tweak isn't the correct size.
func (TweakSizeError) Error ¶
func (e TweakSizeError) Error() string
Error describes a TweakSizeError.
Click to show internal directories.
Click to hide internal directories.