Mercurial > dropbear
comparison signkey.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 | d1575fdc29a6 |
comparison
equal
deleted
inserted
replaced
759:76fba0856749 | 760:f336d232fc63 |
---|---|
61 int buf_get_pub_key(buffer *buf, sign_key *key, int *type); | 61 int buf_get_pub_key(buffer *buf, sign_key *key, int *type); |
62 int buf_get_priv_key(buffer* buf, sign_key *key, int *type); | 62 int buf_get_priv_key(buffer* buf, sign_key *key, int *type); |
63 void buf_put_pub_key(buffer* buf, sign_key *key, int type); | 63 void buf_put_pub_key(buffer* buf, sign_key *key, int type); |
64 void buf_put_priv_key(buffer* buf, sign_key *key, int type); | 64 void buf_put_priv_key(buffer* buf, sign_key *key, int type); |
65 void sign_key_free(sign_key *key); | 65 void sign_key_free(sign_key *key); |
66 void buf_put_sign(buffer* buf, sign_key *key, int type, | 66 void buf_put_sign(buffer* buf, sign_key *key, int type, buffer *data_buf); |
67 const unsigned char *data, unsigned int len); | |
68 #ifdef DROPBEAR_SIGNKEY_VERIFY | 67 #ifdef DROPBEAR_SIGNKEY_VERIFY |
69 int buf_verify(buffer * buf, sign_key *key, const unsigned char *data, | 68 int buf_verify(buffer * buf, sign_key *key, buffer *data_buf); |
70 unsigned int len); | |
71 char * sign_key_fingerprint(unsigned char* keyblob, unsigned int keybloblen); | 69 char * sign_key_fingerprint(unsigned char* keyblob, unsigned int keybloblen); |
72 #endif | 70 #endif |
73 int cmp_base64_key(const unsigned char* keyblob, unsigned int keybloblen, | 71 int cmp_base64_key(const unsigned char* keyblob, unsigned int keybloblen, |
74 const unsigned char* algoname, unsigned int algolen, | 72 const unsigned char* algoname, unsigned int algolen, |
75 buffer * line, char ** fingerprint); | 73 buffer * line, char ** fingerprint); |