diff options
author | Niels Möller <nisse@lysator.liu.se> | 2017-04-09 15:15:18 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2017-04-09 15:15:18 +0200 |
commit | b076e62ef304a75a273a3fd8d1455e667095ecc6 (patch) | |
tree | 290d57fcf42da03dec7722dd881dc606df521cc1 /nettle-meta.h | |
parent | 55fbe36e16e9a0eaabb9ffc4105ea4ec10fda950 (diff) | |
download | nettle-b076e62ef304a75a273a3fd8d1455e667095ecc6.tar.gz |
New function nettle_get_aeads.
Diffstat (limited to 'nettle-meta.h')
-rw-r--r-- | nettle-meta.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nettle-meta.h b/nettle-meta.h index b645fb1b..c0320b45 100644 --- a/nettle-meta.h +++ b/nettle-meta.h @@ -176,7 +176,15 @@ struct nettle_aead /* null-terminated list of aead constructions implemented by this version of nettle */ -extern const struct nettle_aead * const nettle_aeads[]; +extern const struct nettle_aead * const _nettle_aeads[]; + +const struct nettle_aead * const * +#ifdef __GNUC__ +__attribute__((pure)) +#endif +nettle_get_aeads (void); + +#define nettle_aeads (nettle_get_aeads()) extern const struct nettle_aead nettle_gcm_aes128; extern const struct nettle_aead nettle_gcm_aes192; |