package cast5
import "golang.org/x/crypto/cast5"
Package cast5 implements CAST5, as defined in RFC 2144.
CAST5 is a legacy cipher and its short block size makes it vulnerable to birthday bound attacks (see https://sweet32.info). It should only be used where compatibility with legacy systems, not security, is the goal.
Deprecated: any new system should use AES (from crypto/aes, if necessary in an AEAD mode like crypto/cipher.NewGCM) or XChaCha20-Poly1305 (from golang.org/x/crypto/chacha20poly1305).
Index ¶
Constants ¶
const BlockSize = 8
const KeySize = 16
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
func NewCipher ¶
func (*Cipher) BlockSize ¶
func (*Cipher) Decrypt ¶
func (*Cipher) Encrypt ¶
Source Files ¶
cast5.go
- Version
- v0.34.0 (latest)
- Published
- Feb 22, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 9 hours ago –
Tools for package owners.