Documentation ¶
Overview ¶
Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.
Index ¶
Constants ¶
View Source
const BlockSize = 8
The Blowfish block size in bytes.
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 Blowfish encryption using a particular key.
func NewCipher ¶
NewCipher creates and returns a Cipher. The key argument should be the Blowfish key, 4 to 56 bytes.
func (*Cipher) BlockSize ¶
BlockSize returns the Blowfish block size, 8 bytes. It is necessary to satisfy the Cipher interface in the package "crypto/block".
func (*Cipher) Decrypt ¶
Decrypt decrypts the 8-byte buffer src using the key k and stores the result in dst.
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) String ¶
func (k KeySizeError) String() string
Click to show internal directories.
Click to hide internal directories.