pki: Handle hash correctly.

Looks like only DSA in grypt needs a leading zero to mark the has as
positive. See

http://lists.gnupg.org/pipermail/gcrypt-devel/2005-February/000754.html
This commit is contained in:
Andreas Schneider
2011-08-26 23:13:57 +02:00
parent 228e2edac5
commit 79ed1bc601
4 changed files with 57 additions and 50 deletions

View File

@@ -59,12 +59,13 @@ int pki_signature_verify(ssh_session session,
const ssh_signature sig,
const ssh_key key,
const unsigned char *hash,
size_t len);
size_t hlen);
/* SSH Signing Functions */
ssh_signature pki_do_sign(const ssh_key privkey,
const unsigned char *hash,
size_t hlen);
ssh_signature pki_do_sign_sessionid(const ssh_key key,
const unsigned char *hash);
const unsigned char *hash,
size_t hlen);
#endif /* PKI_PRIV_H_ */