Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Brian Smith
nettle
Commits
dc214c3a
Commit
dc214c3a
authored
Sep 19, 2012
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite/meta-hash-test.c: Validate NETTLE_MAX_HASH_DIGEST_SIZE.
parent
24f3cce7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
ChangeLog
ChangeLog
+3
-0
testsuite/meta-hash-test.c
testsuite/meta-hash-test.c
+3
-0
No files found.
ChangeLog
View file @
dc214c3a
2012-09-19 Niels Möller <nisse@lysator.liu.se>
2012-09-19 Niels Möller <nisse@lysator.liu.se>
* testsuite/meta-hash-test.c (test_main): Validate
NETTLE_MAX_HASH_DIGEST_SIZE.
* pbkdf2.h (PBKDF2): New macro.
* pbkdf2.h (PBKDF2): New macro.
* testsuite/pbkdf2-test.c: Use it.
* testsuite/pbkdf2-test.c: Use it.
...
...
testsuite/meta-hash-test.c
View file @
dc214c3a
#include "testutils.h"
#include "testutils.h"
#include "nettle-internal.h"
#include "nettle-meta.h"
#include "nettle-meta.h"
const
char
*
hashes
[]
=
{
const
char
*
hashes
[]
=
{
...
@@ -29,5 +30,7 @@ test_main(void)
...
@@ -29,5 +30,7 @@ test_main(void)
while
(
NULL
!=
nettle_hashes
[
j
])
while
(
NULL
!=
nettle_hashes
[
j
])
j
++
;
j
++
;
ASSERT
(
j
==
count
);
/* we are not missing testing any hashes */
ASSERT
(
j
==
count
);
/* we are not missing testing any hashes */
for
(
j
=
0
;
NULL
!=
nettle_hashes
[
j
];
j
++
)
ASSERT
(
nettle_hashes
[
j
]
->
digest_size
<=
NETTLE_MAX_HASH_DIGEST_SIZE
);
}
}
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