projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Server library.
[silc.git]
/
lib
/
silccrypt
/
tests
/
test_sha1.c
diff --git
a/lib/silccrypt/tests/test_sha1.c
b/lib/silccrypt/tests/test_sha1.c
index 93efb3d0aa03dc9e5cee6d0bf8542c79cd6f0e9f..7798c66dff6b840bbcde5de10506c0d4c945eac6 100644
(file)
--- a/
lib/silccrypt/tests/test_sha1.c
+++ b/
lib/silccrypt/tests/test_sha1.c
@@
-1,4
+1,4
@@
-#include "silc
includes
.h"
+#include "silc.h"
/* Test vectors from NIST secure hashing definition for SHA-1 */
/* Test vectors from NIST secure hashing definition for SHA-1 */
@@
-13,13
+13,13
@@
const unsigned char data2_digest[] = "\x34\xaa\x97\x3c\xd4\xc4\xda\xa4\xf6\x1e\x
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
-
b
ool success = FALSE;
+
SilcB
ool success = FALSE;
unsigned char digest[20];
SilcHash sha1;
if (argc > 1 && !strcmp(argv[1], "-d")) {
unsigned char digest[20];
SilcHash sha1;
if (argc > 1 && !strcmp(argv[1], "-d")) {
- silc_
debug = 1
;
- silc_
debug_hexdump = 1
;
+ silc_
log_debug(TRUE)
;
+ silc_
log_debug_hexdump(TRUE)
;
silc_log_set_debug_string("*crypt*,*hash*,*sha1*");
}
silc_log_set_debug_string("*crypt*,*hash*,*sha1*");
}