Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
55fbe36e
Commit
55fbe36e
authored
Apr 09, 2017
by
Niels Möller
Browse files
New function nettle_get_hashes.
parent
9911b3a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
55fbe36e
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-ciphers.c (_nettle_ciphers): Renamed array, from...
(nettle_ciphers: ... old name.
(nettle_get_ciphers): New function.
2017-01-12 Niels Möller <nisse@lysator.liu.se>
* tools/nettle-hash.c (find_algorithm): Deleted function.
...
...
nettle-meta-ciphers.c
View file @
55fbe36e
...
...
@@ -36,7 +36,7 @@
#include
<stddef.h>
#include
"nettle-meta.h"
const
struct
nettle_cipher
*
const
nettle_ciphers
[]
=
{
const
struct
nettle_cipher
*
const
_
nettle_ciphers
[]
=
{
&
nettle_aes128
,
&
nettle_aes192
,
&
nettle_aes256
,
...
...
@@ -56,3 +56,9 @@ const struct nettle_cipher * const nettle_ciphers[] = {
&
nettle_arctwo_gutmann128
,
NULL
};
const
struct
nettle_cipher
*
const
*
nettle_get_ciphers
(
void
)
{
return
_nettle_ciphers
;
}
nettle-meta.h
View file @
55fbe36e
...
...
@@ -61,7 +61,15 @@ struct nettle_cipher
};
/* null-terminated list of ciphers implemented by this version of nettle */
extern
const
struct
nettle_cipher
*
const
nettle_ciphers
[];
extern
const
struct
nettle_cipher
*
const
_nettle_ciphers
[];
const
struct
nettle_cipher
*
const
*
#ifdef __GNUC__
__attribute__
((
pure
))
#endif
nettle_get_ciphers
(
void
);
#define nettle_ciphers (nettle_get_ciphers())
extern
const
struct
nettle_cipher
nettle_aes128
;
extern
const
struct
nettle_cipher
nettle_aes192
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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