import "golang.org/x/crypto/twofish"
Package twofish implements Bruce Schneier's Twofish encryption algorithm.
const BlockSize = 16
BlockSize is the constant block size of Twofish.
type Cipher struct {
// contains filtered or unexported fields
}
A Cipher is an instance of Twofish encryption using a particular key.
NewCipher creates and returns a Cipher. The key argument should be the Twofish key, 16, 24 or 32 bytes.
BlockSize returns the Twofish block size, 16 bytes.
Decrypt decrypts a 16-byte block from src to dst, which may overlap.
Encrypt encrypts a 16-byte block from src to dst, which may overlap. Note that for amounts of data larger than a block, it is not safe to just call Encrypt on successive blocks; instead, use an encryption mode like CBC (see crypto/cipher/cbc.go).
func (k KeySizeError) Error() string
Package twofish imports 1 packages (graph) and is imported by 3 packages. Updated 6 days ago. Refresh now. Tools for package owners.