mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
crypto/aes: more precise description for AES keys
This commit is contained in:
parent
9b4a462a7d
commit
6565a8f4e5
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ func (k KeySizeError) Error() string {
|
|||
}
|
||||
|
||||
// NewCipher creates and returns a new [cipher.Block].
|
||||
// The key argument should be the AES key,
|
||||
// The key argument must be the AES key,
|
||||
// either 16, 24, or 32 bytes to select
|
||||
// AES-128, AES-192, or AES-256.
|
||||
func NewCipher(key []byte) (cipher.Block, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue