Return to bufbn.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.9, 2014/02/02 03:44:31 | version 1.10, 2014/02/27 00:41:49 | ||
---|---|---|---|
|
|
||
return (-1); | return (-1); | ||
} | } | ||
bits = get_u16(buf); | bits = get_u16(buf); | ||
if (bits > 65536-7) { | |||
error("buffer_get_bignum_ret: cannot handle BN of size %d", | |||
bits); | |||
return (-1); | |||
} | |||
/* Compute the number of binary bytes that follow. */ | /* Compute the number of binary bytes that follow. */ | ||
bytes = (bits + 7) / 8; | bytes = (bits + 7) / 8; | ||
if (bytes > 8 * 1024) { | if (bytes > 8 * 1024) { |