From f1aa58d3b3fa80531052e16c28ba9683484125f4 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 7 Mar 2018 16:14:51 +0100 Subject: cryptodev: added missing macro [ci skip] Signed-off-by: Nikos Mavrogiannopoulos --- lib/accelerated/cryptodev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/accelerated/cryptodev.h b/lib/accelerated/cryptodev.h index b77fa6e89e..78b81cbd53 100644 --- a/lib/accelerated/cryptodev.h +++ b/lib/accelerated/cryptodev.h @@ -1,5 +1,9 @@ extern int _gnutls_cryptodev_fd; +#define CHECK_AES_KEYSIZE(s) \ + if (s != 16 && s != 24 && s != 32) \ + return GNUTLS_E_INVALID_REQUEST + void _gnutls_cryptodev_deinit(void); int _gnutls_cryptodev_init(void); int _cryptodev_register_gcm_crypto(int cfd); -- cgit v1.2.1