crypto: fix cipher function signature mismatch with nettle & xts
commit9c0e5c7ee3d72ab2ac2128a0e287571a21612cbe
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Mar 2016 10:07:16 +0000 (21 10:07 +0000)
committerStefan Weil <sw@weilnetz.de>
Mon, 21 Mar 2016 19:37:01 +0000 (21 20:37 +0100)
treecacb123b7440c9faa44d4a0ebb2f50a6dd9530be
parentf0f781f3fcbe01d552f4ce443f705e4214a86dbd
crypto: fix cipher function signature mismatch with nettle & xts

For versions of nettle < 3.0.0, the cipher functions took a
'void *ctx' and 'unsigned len' instad of 'const void *ctx'
and 'size_t len'. The xts functions though are builtin to
QEMU and always expect the latter signatures. Define a
second set of wrappers to use with the correct signatures
needed by XTS mode.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/cipher-nettle.c