projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed SILC code to use new SRT and SCT APIs.
[silc.git]
/
lib
/
silccore
/
silcauth.c
diff --git
a/lib/silccore/silcauth.c
b/lib/silccore/silcauth.c
index 72cce5aad9492891f625afb0202368eb6173c8f6..f2c73f0ece9fad49a5081d464595d561760068db 100644
(file)
--- a/
lib/silccore/silcauth.c
+++ b/
lib/silccore/silcauth.c
@@
-370,8
+370,8
@@
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, rng,
- silc_auth_public_key_auth_generate_cb, a);
+ op = silc_pkcs_sign
_async
(private_key, tmp, tmp_len, TRUE, hash, rng,
+
silc_auth_public_key_auth_generate_cb, a);
memset(tmp, 0, tmp_len);
silc_sfree(stack, tmp);
memset(tmp, 0, tmp_len);
silc_sfree(stack, tmp);
@@
-408,9
+408,9
@@
silc_auth_public_key_auth_verify(SilcAuthPayload payload,
}
/* Verify the authentication data */
}
/* Verify the authentication data */
- op = silc_pkcs_verify(public_key, payload->auth_data,
-
payload->auth_len, tmp, tmp_len
, hash,
- result, context);
+ op = silc_pkcs_verify
_async
(public_key, payload->auth_data,
+
payload->auth_len, tmp, tmp_len, TRUE
, hash,
+
result, context);
memset(tmp, 0, tmp_len);
silc_sfree(payload->stack, tmp);
memset(tmp, 0, tmp_len);
silc_sfree(payload->stack, tmp);