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:
Daniel P. Berrange 2015-11-20 16:15:42 +00:00
parent 48befbc344
commit 50de626151
1 changed files with 1 additions and 1 deletions

View File

@ -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;