On 11/11/15 09:36, Horia Geantă wrote:
Linux Crypto API changed to using aead_request_set_ad()
instead of aead_request_set_assoc().
Signed-off-by: Horia Geantă <horia.gea...@freescale.com>
---
Compile-tested only.
cryptlib.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cryptlib.h b/cryptlib.h
index a0a8a63e2ff3..0c2009286e31 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -40,7 +40,7 @@ static inline void cryptodev_cipher_auth(struct cipher_data
*cdata,
struct scatterlist *sg1, size_t len)
{
/* for some reason we _have_ to call that even for zero length sgs */
- aead_request_set_assoc(cdata->async.arequest, len ? sg1 : NULL, len);
+ aead_request_set_ad(cdata->async.arequest, len);
}
static inline void cryptodev_cipher_set_tag_size(struct cipher_data *cdata,
int size)
Hi Horia.
This works, however it breaks builds on older kernels (<4.2 i believe),
so i've sent a revised version.
Thanks.
Regards.
_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel