Documentation ¶
Overview ¶
Package threefish implements Threefish-512 block cipher as defined in "The Skein Hash Function Family" paper version 1.3.
Index ¶
Constants ¶
View Source
const ( // Block size in bytes. BlockSize = 64 // Key size in bytes. KeySize = 64 // Tweak size in bytes. TweakSize = 16 )
Variables ¶
This section is empty.
Functions ¶
func DecryptBlock ¶
func DecryptBlock(key, tweak, dst, src []byte)
DecryptBlock decrypts a single block with the given key and tweak.
func EncryptBlock ¶
func EncryptBlock(key, tweak, dst, src []byte)
EncryptBlock encrypts a single block with the given key and tweak.
Types ¶
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
type Threefish ¶
type Threefish struct {
// contains filtered or unexported fields
}
Threefish is an instance of cipher using a particular key and tweak.
type TweakSizeError ¶
type TweakSizeError int
func (TweakSizeError) Error ¶
func (t TweakSizeError) Error() string
Click to show internal directories.
Click to hide internal directories.