comparison buffer.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 c3f2ec71e3d4
children ac2158e3e403
comparison
equal deleted inserted replaced
759:76fba0856749 760:f336d232fc63
57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen); 57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen);
58 buffer * buf_getstringbuf(buffer *buf); 58 buffer * buf_getstringbuf(buffer *buf);
59 void buf_eatstring(buffer *buf); 59 void buf_eatstring(buffer *buf);
60 void buf_putint(buffer* buf, unsigned int val); 60 void buf_putint(buffer* buf, unsigned int val);
61 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len); 61 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len);
62 void buf_putstringbuf(buffer *buf, const buffer* buf_str);
62 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len); 63 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len);
63 void buf_putmpint(buffer* buf, mp_int * mp); 64 void buf_putmpint(buffer* buf, mp_int * mp);
64 int buf_getmpint(buffer* buf, mp_int* mp); 65 int buf_getmpint(buffer* buf, mp_int* mp);
65 unsigned int buf_getint(buffer* buf); 66 unsigned int buf_getint(buffer* buf);
66 67