comparison rsa.h @ 760:f336d232fc63 ecc

Make _sign and _verify functions take a buffer* rather than void* and int
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Apr 2013 16:00:37 +0800
parents b50f0107e505
children deed0571cacc
comparison
equal deleted inserted replaced
759:76fba0856749 760:f336d232fc63
41 mp_int* p; 41 mp_int* p;
42 mp_int* q; 42 mp_int* q;
43 43
44 } dropbear_rsa_key; 44 } dropbear_rsa_key;
45 45
46 void buf_put_rsa_sign(buffer* buf, dropbear_rsa_key *key, const unsigned char* data, 46 void buf_put_rsa_sign(buffer* buf, dropbear_rsa_key *key, buffer *data_buf);
47 unsigned int len);
48 #ifdef DROPBEAR_SIGNKEY_VERIFY 47 #ifdef DROPBEAR_SIGNKEY_VERIFY
49 int buf_rsa_verify(buffer * buf, dropbear_rsa_key *key, const unsigned char* data, 48 int buf_rsa_verify(buffer * buf, dropbear_rsa_key *key, buffer *data_buf);
50 unsigned int len);
51 #endif 49 #endif
52 int buf_get_rsa_pub_key(buffer* buf, dropbear_rsa_key *key); 50 int buf_get_rsa_pub_key(buffer* buf, dropbear_rsa_key *key);
53 int buf_get_rsa_priv_key(buffer* buf, dropbear_rsa_key *key); 51 int buf_get_rsa_priv_key(buffer* buf, dropbear_rsa_key *key);
54 void buf_put_rsa_pub_key(buffer* buf, dropbear_rsa_key *key); 52 void buf_put_rsa_pub_key(buffer* buf, dropbear_rsa_key *key);
55 void buf_put_rsa_priv_key(buffer* buf, dropbear_rsa_key *key); 53 void buf_put_rsa_priv_key(buffer* buf, dropbear_rsa_key *key);