mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
pki: Add pki_do_sign().
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user