mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
crypto: fix transposed arguments in cipher error message
When reporting an incorrect key length for a cipher, we mixed up the actual vs expected arguments. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
48befbc344
commit
50de626151
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ qcrypto_cipher_validate_key_length(QCryptoCipherAlgorithm alg,
|
||||||
|
|
||||||
if (alg_key_len[alg] != nkey) {
|
if (alg_key_len[alg] != nkey) {
|
||||||
error_setg(errp, "Cipher key length %zu should be %zu",
|
error_setg(errp, "Cipher key length %zu should be %zu",
|
||||||
alg_key_len[alg], nkey);
|
nkey, alg_key_len[alg]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue