crypto: fix cipher function signature mismatch with nettle & xts
commitf7ac78cfe1bdb1f0067eac66edd2ae550080f061
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Mar 2016 12:39:12 +0000 (18 12:39 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Mar 2016 10:03:45 +0000 (21 10:03 +0000)
treed3e3e990268ce212c5ec066cbc50d0387eb40935
parent621e6ae657d4cb44f19461db0796b09cca438778
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