crypto/aes: more precise description for AES keys

This commit is contained in:
Pasha Radchenko 2025-02-06 21:31:28 +03:00
parent 9b4a462a7d
commit 6565a8f4e5

View file

@ -30,7 +30,7 @@ func (k KeySizeError) Error() string {
} }
// NewCipher creates and returns a new [cipher.Block]. // 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 // either 16, 24, or 32 bytes to select
// AES-128, AES-192, or AES-256. // AES-128, AES-192, or AES-256.
func NewCipher(key []byte) (cipher.Block, error) { func NewCipher(key []byte) (cipher.Block, error) {