diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-08-07 12:17:29 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-31 14:18:34 +0200 |
commit | fa60827840d893187c32a6de538c3955b46256ac (patch) | |
tree | 17ec533fc97327d2754813a63c6220f2af7f5fcb /include/libssh/pki_priv.h | |
parent | 761225712a28d70adea7a2b872c265bc98a83511 (diff) | |
download | libssh-fa60827840d893187c32a6de538c3955b46256ac.tar.gz libssh-fa60827840d893187c32a6de538c3955b46256ac.tar.xz libssh-fa60827840d893187c32a6de538c3955b46256ac.zip |
pki: Support RSA verification using different hash algorithms
This changes the private API by adding one more argument to function
pki_signature_from_blob()
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/pki_priv.h')
-rw-r--r-- | include/libssh/pki_priv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h index af041504..b10e3b95 100644 --- a/include/libssh/pki_priv.h +++ b/include/libssh/pki_priv.h @@ -45,6 +45,8 @@ int bcrypt_pbkdf(const char *pass, int pki_key_ecdsa_nid_from_name(const char *name); const char *pki_key_ecdsa_nid_to_name(int nid); +const char *ssh_key_signature_to_char(enum ssh_keytypes_e type, + enum ssh_digest_e hash_type); /* SSH Key Functions */ ssh_key pki_key_dup(const ssh_key key, int demote); @@ -85,7 +87,8 @@ ssh_string pki_publickey_to_blob(const ssh_key key); 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); + enum ssh_keytypes_e type, + enum ssh_digest_e hash_type); int pki_signature_verify(ssh_session session, const ssh_signature sig, const ssh_key key, |