summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);