comparison buffer.h @ 640:76097ec1a29a dropbear-tfm

- Bring in original tomsfastmath patch against 0.52 from Peter Turczak in 2008
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Nov 2011 19:19:57 +0800
parents 161557a9dde8
children 2b1bb792cd4d
comparison
equal deleted inserted replaced
518:ce104c8b0be1 640:76097ec1a29a
57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen); 57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen);
58 void buf_eatstring(buffer *buf); 58 void buf_eatstring(buffer *buf);
59 void buf_putint(buffer* buf, unsigned int val); 59 void buf_putint(buffer* buf, unsigned int val);
60 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len); 60 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len);
61 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len); 61 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len);
62 void buf_putmpint(buffer* buf, mp_int * mp); 62 void buf_putfpint(buffer* buf, fp_int * fp);
63 int buf_getmpint(buffer* buf, mp_int* mp); 63 int buf_getfpint(buffer* buf, fp_int* fp);
64 unsigned int buf_getint(buffer* buf); 64 unsigned int buf_getint(buffer* buf);
65 65
66 #endif /* _BUFFER_H_ */ 66 #endif /* _BUFFER_H_ */