projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
lib
/
silccrypt
/
silcpkcs.c
diff --git
a/lib/silccrypt/silcpkcs.c
b/lib/silccrypt/silcpkcs.c
index 3fc2d4c7782cad4c3395aeee1467218ff83d3f39..a5ebf6be46a697f26026bce93ec490b30c8f7ad2 100644
(file)
--- a/
lib/silccrypt/silcpkcs.c
+++ b/
lib/silccrypt/silcpkcs.c
@@
-230,6
+230,8
@@
int silc_pkcs_sign_with_hash(SilcPKCS pkcs, SilcHash hash,
silc_hash_make(hash, src, src_len, hashr);
hash_len = hash->hash->hash_len;
silc_hash_make(hash, src, src_len, hashr);
hash_len = hash->hash->hash_len;
+ SILC_LOG_HEXDUMP(("Hash"), hashr, hash_len);
+
ret = pkcs->pkcs->sign(pkcs->context, hashr, hash_len, dst, dst_len);
memset(hashr, 0, sizeof(hashr));
ret = pkcs->pkcs->sign(pkcs->context, hashr, hash_len, dst, dst_len);
memset(hashr, 0, sizeof(hashr));
@@
-252,6
+254,8
@@
int silc_pkcs_verify_with_hash(SilcPKCS pkcs, SilcHash hash,
silc_hash_make(hash, data, data_len, hashr);
hash_len = hash->hash->hash_len;
silc_hash_make(hash, data, data_len, hashr);
hash_len = hash->hash->hash_len;
+ SILC_LOG_HEXDUMP(("Hash"), hashr, hash_len);
+
ret = pkcs->pkcs->verify(pkcs->context, signature, signature_len,
hashr, hash_len);
memset(hashr, 0, sizeof(hashr));
ret = pkcs->pkcs->verify(pkcs->context, signature, signature_len,
hashr, hash_len);
memset(hashr, 0, sizeof(hashr));