mirror of https://gitee.com/openkylin/qemu.git
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
|
@ -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…
Reference in New Issue