Documentation ¶
Overview ¶
Package twofish implements Bruce Schneier's Twofish encryption algorithm.
Index ¶
Constants ¶
View Source
const BlockSize = 16
BlockSize is the constant block size of Twofish.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
A Cipher is an instance of Twofish encryption using a particular key.
func NewCipher ¶
NewCipher creates and returns a Cipher. The key argument should be the Twofish key, 16, 24 or 32 bytes.
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.