comparison buffer.c @ 354:0e38c039a9c8 debug-unrandom

yet more debugging
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 Aug 2006 16:37:18 +0000
parents c5d3ef11155f
children
comparison
equal deleted inserted replaced
353:59323ef2833b 354:0e38c039a9c8
312 * Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */ 312 * Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
313 int buf_getmpint(buffer* buf, mp_int* mp) { 313 int buf_getmpint(buffer* buf, mp_int* mp) {
314 314
315 unsigned int len; 315 unsigned int len;
316 len = buf_getint(buf); 316 len = buf_getint(buf);
317
318 TRACE(("buf_getmpint len %d", len))
319 printhex("buf_getmpint", buf_getptr(buf, len), len);
317 320
318 if (len == 0) { 321 if (len == 0) {
319 mp_zero(mp); 322 mp_zero(mp);
320 return DROPBEAR_SUCCESS; 323 return DROPBEAR_SUCCESS;
321 } 324 }