mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 10:27:22 +09:00
pki: Add ssh_pki_signature_verify_blob().
This commit is contained in:
@@ -68,6 +68,8 @@ int ssh_pki_export_signature_blob(const ssh_signature sign,
|
||||
int ssh_pki_import_signature_blob(const ssh_string sig_blob,
|
||||
const ssh_key pubkey,
|
||||
ssh_signature *psig);
|
||||
int ssh_pki_signature_verify_blob(ssh_session session,
|
||||
ssh_string sig_blob);
|
||||
|
||||
/* SSH Public Key Functions */
|
||||
ssh_string ssh_pki_export_pubkey_blob(const ssh_key key);
|
||||
|
||||
@@ -55,6 +55,11 @@ ssh_string pki_signature_to_blob(const ssh_signature sign);
|
||||
ssh_signature pki_signature_from_blob(const ssh_key pubkey,
|
||||
const ssh_string sig_blob,
|
||||
enum ssh_keytypes_e type);
|
||||
int pki_signature_verify(ssh_session session,
|
||||
const ssh_signature sig,
|
||||
const ssh_key key,
|
||||
const unsigned char *hash,
|
||||
size_t len);
|
||||
|
||||
/* SSH Signing Functions */
|
||||
struct signature_struct *pki_do_sign(const ssh_key privatekey,
|
||||
|
||||
Reference in New Issue
Block a user