Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
bd77254b
Commit
bd77254b
authored
Jul 07, 2014
by
Manuel Pégourié-Gonnard
Browse files
md_list() starting with strongest hash
parent
6697b6c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
ChangeLog
ChangeLog
+1
-0
library/md.c
library/md.c
+15
-15
No files found.
ChangeLog
View file @
bd77254b
...
...
@@ -30,6 +30,7 @@ Changes
required on some platforms (e.g. OpenBSD)
* Migrate zeroizing of data to polarssl_zeroize() instead of memset()
against unwanted compiler optimizations
* md_list() now returns hashes strongest first
Bugfix
* Fix in debug_print_msg()
...
...
library/md.c
View file @
bd77254b
...
...
@@ -52,37 +52,37 @@ static void polarssl_zeroize( void *v, size_t n ) {
static
const
int
supported_digests
[]
=
{
#if defined(POLARSSL_MD2_C)
POLARSSL_MD_MD2
,
#if defined(POLARSSL_SHA512_C)
POLARSSL_MD_SHA384
,
POLARSSL_MD_SHA512
,
#endif
#if defined(POLARSSL_MD4_C)
POLARSSL_MD_MD4
,
#if defined(POLARSSL_SHA256_C)
POLARSSL_MD_SHA224
,
POLARSSL_MD_SHA256
,
#endif
#if defined(POLARSSL_
MD5
_C)
POLARSSL_MD_
MD5
,
#if defined(POLARSSL_
SHA1
_C)
POLARSSL_MD_
SHA1
,
#endif
#if defined(POLARSSL_RIPEMD160_C)
POLARSSL_MD_RIPEMD160
,
#endif
#if defined(POLARSSL_
SHA1
_C)
POLARSSL_MD_
SHA1
,
#if defined(POLARSSL_
MD5
_C)
POLARSSL_MD_
MD5
,
#endif
#if defined(POLARSSL_SHA256_C)
POLARSSL_MD_SHA224
,
POLARSSL_MD_SHA256
,
#if defined(POLARSSL_MD4_C)
POLARSSL_MD_MD4
,
#endif
#if defined(POLARSSL_SHA512_C)
POLARSSL_MD_SHA384
,
POLARSSL_MD_SHA512
,
#if defined(POLARSSL_MD2_C)
POLARSSL_MD_MD2
,
#endif
0
POLARSSL_MD_NONE
};
const
int
*
md_list
(
void
)
...
...
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