pki: Add pki_do_sign().

This commit is contained in:
Andreas Schneider
2011-08-07 18:22:19 +02:00
parent 38d00c0e7a
commit f81444bd57
5 changed files with 125 additions and 91 deletions

View File

@@ -37,7 +37,9 @@ typedef gcry_md_hd_t HMACCTX;
#define SHA384_DIGEST_LENGTH 48
#define SHA512_DIGEST_LENGTH 64
#ifndef EVP_MAX_MD_SIZE
#define EVP_MAX_MD_SIZE 36
#endif
typedef gcry_mpi_t bignum;

View File

@@ -62,5 +62,7 @@ ssh_key pki_private_key_from_base64(ssh_session session,
const char *b64_key,
const char *passphrase);
ssh_key pki_publickey_from_privatekey(ssh_key privkey);
struct signature_struct *pki_do_sign(ssh_key privatekey,
const unsigned char *hash);
#endif /* PKI_H_ */