Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
b076e62e
Commit
b076e62e
authored
Apr 09, 2017
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New function nettle_get_aeads.
parent
55fbe36e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
ChangeLog
ChangeLog
+6
-2
nettle-meta-aeads.c
nettle-meta-aeads.c
+7
-1
nettle-meta.h
nettle-meta.h
+9
-1
No files found.
ChangeLog
View file @
b076e62e
2017-04-09 Niels Möller <nisse@lysator.liu.se>
* nettle-meta.h (nettle_ciphers
): New macro, analogous to below
change to nettle_hashes.
* nettle-meta.h (nettle_ciphers
, nettle_aeads): New macros,
analogous to below
change to nettle_hashes.
* nettle-meta-ciphers.c (_nettle_ciphers): Renamed array, from...
(nettle_ciphers: ... old name.
(nettle_get_ciphers): New function.
* nettle-meta-aeads.c (_nettle_aeads): Renamed array, from...
(nettle_aeads: ... old name.
(nettle_get_aeads): New function.
2017-01-12 Niels Möller <nisse@lysator.liu.se>
* tools/nettle-hash.c (find_algorithm): Deleted function.
...
...
nettle-meta-aeads.c
View file @
b076e62e
...
...
@@ -37,7 +37,7 @@
#include "nettle-meta.h"
const
struct
nettle_aead
*
const
nettle_aeads
[]
=
{
const
struct
nettle_aead
*
const
_
nettle_aeads
[]
=
{
&
nettle_gcm_aes128
,
&
nettle_gcm_aes192
,
&
nettle_gcm_aes256
,
...
...
@@ -47,3 +47,9 @@ const struct nettle_aead * const nettle_aeads[] = {
&
nettle_chacha_poly1305
,
NULL
};
const
struct
nettle_aead
*
const
*
nettle_get_aeads
(
void
)
{
return
_nettle_aeads
;
}
nettle-meta.h
View file @
b076e62e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment