Documentation ¶
Overview ¶
Package des implements the Data Encryption Standard (DES) and the Triple Data Encryption Algorithm (TDEA) as defined in U.S. Federal Information Processing Standards Publication 46-3.
DES is cryptographically broken and should not be used for secure applications.
Index ¶
Constants ¶
View Source
const BlockSize = 8
The DES 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
}
Cipher is an instance of DES encryption.
func (*Cipher) DecryptBlock ¶
func (*Cipher) EncryptBlock ¶
type Cracker ¶
type Cracker struct {
// contains filtered or unexported fields
}
Cracker is an instance of DES encryption.
func NewCracker ¶
NewCracker creates and returns a new Cracker.
type TripleDESCipher ¶
type TripleDESCipher struct {
// contains filtered or unexported fields
}
A TripleDESCipher is an instance of TripleDES encryption.
func NewTripleDESCipher ¶
func NewTripleDESCipher(key [3]uint64) *TripleDESCipher
NewTripleDESCipher creates and returns a new TripleDESCipher.
func (*TripleDESCipher) DecryptBlock ¶
func (c *TripleDESCipher) DecryptBlock(block uint64) uint64
func (*TripleDESCipher) EncryptBlock ¶
func (c *TripleDESCipher) EncryptBlock(block uint64) uint64
Click to show internal directories.
Click to hide internal directories.