summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-03-07 16:14:51 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-03-07 16:14:59 +0100
commita9d3a08818b253010ec8aeacce442bccc21fa83a (patch)
tree8c8c99f278fb10ef47b3e497136049be5e839410 /lib
parentc03731901c7e596c063c4c833641c221ff5b6273 (diff)
downloadgnutls-a9d3a08818b253010ec8aeacce442bccc21fa83a.tar.gz
cryptodev: added missing macro [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/accelerated/cryptodev.h4
1 files changed, 4 insertions, 0 deletions
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);