comparison rsa.h @ 839:33207ed1174b

Merge in ECC
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Oct 2013 22:57:21 +0800
parents f336d232fc63
children deed0571cacc
comparison
equal deleted inserted replaced
834:e378da7eae5d 839:33207ed1174b
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);