projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY and
[silc.git]
/
lib
/
silccore
/
silcauth.c
diff --git
a/lib/silccore/silcauth.c
b/lib/silccore/silcauth.c
index 63ad694021ee67dffcc767783479f109b95bab5c..aea21a993f34f62a777a06815a3f78e2e1d4ad1b 100644
(file)
--- a/
lib/silccore/silcauth.c
+++ b/
lib/silccore/silcauth.c
@@
-274,7
+274,7
@@
SilcBuffer silc_auth_public_key_auth_generate(SilcPublicKey public_key,
silc_pkcs_private_key_set(pkcs, private_key);
/* Compute the hash and the signature. */
silc_pkcs_private_key_set(pkcs, private_key);
/* Compute the hash and the signature. */
- if (silc_pkcs_get_key_len(pkcs) > sizeof(auth_data) - 1 ||
+ if (silc_pkcs_get_key_len(pkcs)
/ 8
> sizeof(auth_data) - 1 ||
!silc_pkcs_sign_with_hash(pkcs, hash, tmp, tmp_len, auth_data,
&auth_len)) {
memset(randomdata, 0, 256);
!silc_pkcs_sign_with_hash(pkcs, hash, tmp, tmp_len, auth_data,
&auth_len)) {
memset(randomdata, 0, 256);