projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PKCS API changes.
[silc.git]
/
lib
/
silccore
/
silcauth.c
diff --git
a/lib/silccore/silcauth.c
b/lib/silccore/silcauth.c
index 5082162e75051d35993382aaa4df794b7a947602..d14899d33a12f17ccbf55cacffbec65d3072b2e8 100644
(file)
--- a/
lib/silccore/silcauth.c
+++ b/
lib/silccore/silcauth.c
@@
-312,7
+312,7
@@
silc_auth_public_key_auth_generate(SilcPublicKey public_key,
return silc_auth_public_key_auth_generate_wpub(public_key, private_key,
randomdata, sizeof(randomdata),
return silc_auth_public_key_auth_generate_wpub(public_key, private_key,
randomdata, sizeof(randomdata),
- hash, id, type, generated,
+ hash,
rng,
id, type, generated,
context);
}
context);
}
@@
-326,6
+326,7
@@
silc_auth_public_key_auth_generate_wpub(SilcPublicKey public_key,
const unsigned char *pubdata,
SilcUInt32 pubdata_len,
SilcHash hash,
const unsigned char *pubdata,
SilcUInt32 pubdata_len,
SilcHash hash,
+ SilcRng rng,
const void *id, SilcIdType type,
SilcAuthGenerated generated,
void *context)
const void *id, SilcIdType type,
SilcAuthGenerated generated,
void *context)
@@
-369,7
+370,7
@@
silc_auth_public_key_auth_generate_wpub(SilcPublicKey public_key,
}
/* Compute the hash and the signature. */
}
/* Compute the hash and the signature. */
- op = silc_pkcs_sign(private_key, tmp, tmp_len, TRUE, hash,
+ op = silc_pkcs_sign(private_key, tmp, tmp_len, TRUE, hash,
rng,
silc_auth_public_key_auth_generate_cb, a);
memset(tmp, 0, tmp_len);
silc_auth_public_key_auth_generate_cb, a);
memset(tmp, 0, tmp_len);
@@
-408,7
+409,7
@@
silc_auth_public_key_auth_verify(SilcAuthPayload payload,
/* Verify the authentication data */
op = silc_pkcs_verify(public_key, payload->auth_data,
/* Verify the authentication data */
op = silc_pkcs_verify(public_key, payload->auth_data,
- payload->auth_len, tmp, tmp_len, hash,
+ payload->auth_len, tmp, tmp_len, hash,
NULL,
result, context);
memset(tmp, 0, tmp_len);
result, context);
memset(tmp, 0, tmp_len);