Skip to content

Commit

Permalink
crypto: Fix aes_decrypt_wrapper()
Browse files Browse the repository at this point in the history
Commit d3462e3 broke qcow2's encryption functionality by using encrypt
instead of decrypt in the wrapper function it introduces. This was found
by qemu-iotests case 134.

Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Daniel P. Berrange <[email protected]>
  • Loading branch information
kevmw committed Jul 20, 2015
1 parent 7135847 commit bd09594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/cipher-nettle.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void aes_encrypt_wrapper(cipher_ctx_t ctx, cipher_length_t length,
static void aes_decrypt_wrapper(cipher_ctx_t ctx, cipher_length_t length,
uint8_t *dst, const uint8_t *src)
{
aes_encrypt(ctx, length, dst, src);
aes_decrypt(ctx, length, dst, src);
}

static void des_encrypt_wrapper(cipher_ctx_t ctx, cipher_length_t length,
Expand Down

0 comments on commit bd09594

Please sign in to comment.