mirror of
https://github.com/restic/restic.git
synced 2025-08-25 18:37:42 +00:00
replace "too small" with "too short" in error messages
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user