aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/golang.org/x/crypto/cast5/cast5.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/crypto/cast5/cast5.go')
-rw-r--r--vendor/golang.org/x/crypto/cast5/cast5.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/vendor/golang.org/x/crypto/cast5/cast5.go b/vendor/golang.org/x/crypto/cast5/cast5.go
index 0b4af37..ddcbeb6 100644
--- a/vendor/golang.org/x/crypto/cast5/cast5.go
+++ b/vendor/golang.org/x/crypto/cast5/cast5.go
@@ -2,8 +2,15 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// Package cast5 implements CAST5, as defined in RFC 2144. CAST5 is a common 5// Package cast5 implements CAST5, as defined in RFC 2144.
6// OpenPGP cipher. 6//
7// CAST5 is a legacy cipher and its short block size makes it vulnerable to
8// birthday bound attacks (see https://sweet32.info). It should only be used
9// where compatibility with legacy systems, not security, is the goal.
10//
11// Deprecated: any new system should use AES (from crypto/aes, if necessary in
12// an AEAD mode like crypto/cipher.NewGCM) or XChaCha20-Poly1305 (from
13// golang.org/x/crypto/chacha20poly1305).
7package cast5 // import "golang.org/x/crypto/cast5" 14package cast5 // import "golang.org/x/crypto/cast5"
8 15
9import "errors" 16import "errors"