replace "too small" with "too short" in error messages

This commit is contained in:
Michael Eischer
2024-05-11 21:36:16 +02:00
parent 53561474d9
commit 6328b7e1f5
5 changed files with 7 additions and 7 deletions

View File

@@ -299,7 +299,7 @@ func (k *Key) Open(dst, nonce, ciphertext, _ []byte) ([]byte, error) {
// check for plausible length
if len(ciphertext) < k.Overhead() {
return nil, errors.Errorf("trying to decrypt invalid data: ciphertext too small")
return nil, errors.Errorf("trying to decrypt invalid data: ciphertext too short")
}
l := len(ciphertext) - macSize