diff rsa.h @ 1675:ae41624c2198

split signkey_type and signature_type for RSA sha1 vs sha256
author Matt Johnston <matt@ucc.asn.au>
date Sun, 17 May 2020 23:58:31 +0800
parents ba6fc7afe1c5
children
line wrap: on
line diff
--- a/rsa.h	Mon Apr 06 23:18:26 2020 +0800
+++ b/rsa.h	Sun May 17 23:58:31 2020 +0800
@@ -43,10 +43,10 @@
 } dropbear_rsa_key;
 
 void buf_put_rsa_sign(buffer* buf, const dropbear_rsa_key *key, 
-        enum signkey_type sigtype, const buffer *data_buf);
+        enum signature_type sigtype, const buffer *data_buf);
 #if DROPBEAR_SIGNKEY_VERIFY
 int buf_rsa_verify(buffer * buf, const dropbear_rsa_key *key, 
-        enum signkey_type sigtype, const buffer *data_buf);
+        enum signature_type sigtype, const buffer *data_buf);
 #endif
 int buf_get_rsa_pub_key(buffer* buf, dropbear_rsa_key *key);
 int buf_get_rsa_priv_key(buffer* buf, dropbear_rsa_key *key);