summaryrefslogtreecommitdiff
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:15:22 +0100
commit953cb6462d58470903eb0a0038091514dcd360f9 (patch)
treeb1877e8d32e59cf375af5ba847504a5448ba09ba
parentfe947dec18e723e2b28ae82687344b659d1d88fe (diff)
downloadgnutls-953cb6462d58470903eb0a0038091514dcd360f9.tar.gz
cryptodev: added missing macro [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-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);