diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-03-07 16:14:51 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-03-13 12:55:56 +0100 |
commit | f1aa58d3b3fa80531052e16c28ba9683484125f4 (patch) | |
tree | 61ea6514ecfd4d3ffcb903de18bd06c583e06d86 | |
parent | 819b77641212e29f19fa89a8399dc64d8fcd6860 (diff) | |
download | gnutls-f1aa58d3b3fa80531052e16c28ba9683484125f4.tar.gz |
cryptodev: added missing macro [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | lib/accelerated/cryptodev.h | 4 |
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); |