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
fa56eecc
Commit
fa56eecc
authored
Sep 03, 2016
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pointed signedness warnings in md5-compat-test.
parent
9c11e03e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
ChangeLog
ChangeLog
+7
-5
testsuite/md5-compat-test.c
testsuite/md5-compat-test.c
+7
-7
No files found.
ChangeLog
View file @
fa56eecc
2016-09-03 Niels Möller <nisse@lysator.liu.se>
* testsuite/eddsa-verify-test.c (test_eddsa): Use LDATA.
* testsuite/pbkdf2-test.c (test_main): Likewise.
* testsuite/pkcs1-test.c (test_main): Likewise.
* testsuite/rsa-encrypt-test.c (test_main): Fix pointer
signednesss warning.
* testsuite/testutils.h (US): New macro, for unsigned string
literals.
(LDATA): Use the US macro, to eliminate pointer signedness
warnings.
* testsuite/rsa-encrypt-test.c (test_main): Fix pointer
signednesss warning.
* testsuite/eddsa-verify-test.c (test_eddsa): Use LDATA.
* testsuite/pbkdf2-test.c (test_main): Likewise.
* testsuite/pkcs1-test.c (test_main): Likewise.
* testsuite/md5-compat-test.c (test_main): Use US macro.
2016-08-29 Niels Möller <nisse@lysator.liu.se>
...
...
testsuite/md5-compat-test.c
View file @
fa56eecc
...
...
@@ -13,38 +13,38 @@ test_main(void)
H
(
"D41D8CD98F00B204 E9800998ECF8427E"
)));
MD5Init
(
&
ctx
);
MD5Update
(
&
ctx
,
"a"
,
1
);
MD5Update
(
&
ctx
,
US
(
"a"
)
,
1
);
MD5Final
(
digest
,
&
ctx
);
ASSERT
(
MEMEQ
(
MD5_DIGEST_SIZE
,
digest
,
H
(
"0CC175B9C0F1B6A8 31C399E269772661"
)));
MD5Init
(
&
ctx
);
MD5Update
(
&
ctx
,
"abc"
,
3
);
MD5Update
(
&
ctx
,
US
(
"abc"
)
,
3
);
MD5Final
(
digest
,
&
ctx
);
ASSERT
(
MEMEQ
(
MD5_DIGEST_SIZE
,
digest
,
H
(
"900150983cd24fb0 D6963F7D28E17F72"
)));
MD5Init
(
&
ctx
);
MD5Update
(
&
ctx
,
"message digest"
,
14
);
MD5Update
(
&
ctx
,
US
(
"message digest"
)
,
14
);
MD5Final
(
digest
,
&
ctx
);
ASSERT
(
MEMEQ
(
MD5_DIGEST_SIZE
,
digest
,
H
(
"F96B697D7CB7938D 525A2F31AAF161D0"
)));
MD5Init
(
&
ctx
);
MD5Update
(
&
ctx
,
"abcdefghijklmnopqrstuvwxyz"
,
26
);
MD5Update
(
&
ctx
,
US
(
"abcdefghijklmnopqrstuvwxyz"
)
,
26
);
MD5Final
(
digest
,
&
ctx
);
ASSERT
(
MEMEQ
(
MD5_DIGEST_SIZE
,
digest
,
H
(
"C3FCD3D76192E400 7DFB496CCA67E13B"
)));
MD5Init
(
&
ctx
);
MD5Update
(
&
ctx
,
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
,
62
);
MD5Update
(
&
ctx
,
US
(
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
)
,
62
);
MD5Final
(
digest
,
&
ctx
);
ASSERT
(
MEMEQ
(
MD5_DIGEST_SIZE
,
digest
,
H
(
"D174AB98D277D9F5 A5611C2C9F419D9F"
)));
MD5Init
(
&
ctx
);
MD5Update
(
&
ctx
,
"1234567890123456789012345678901234567890"
"1234567890123456789012345678901234567890"
,
MD5Update
(
&
ctx
,
US
(
"1234567890123456789012345678901234567890"
"1234567890123456789012345678901234567890"
)
,
80
);
MD5Final
(
digest
,
&
ctx
);
ASSERT
(
MEMEQ
(
MD5_DIGEST_SIZE
,
digest
,
...
...
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