Home | History | Annotate | Download | only in openssh

Lines Matching defs:bytes

56  * by (bits+7)/8 bytes of binary data, msb first.
76 /* Store the number of bits in the buffer in two bytes, msb first. */
101 u_int bits, bytes;
110 /* Compute the number of binary bytes that follow. */
111 bytes = (bits + 7) / 8;
112 if (bytes > 8 * 1024) {
113 error("buffer_get_bignum_ret: cannot handle BN of size %d", bytes);
116 if (buffer_len(buffer) < bytes) {
121 if (BN_bin2bn(bin, bytes, value) == NULL) {
125 if (buffer_consume_ret(buffer, bytes) == -1) {
145 u_int bytes;
158 bytes = BN_num_bytes(value) + 1; /* extra padding byte */
159 if (bytes < 2) {
163 buf = xmalloc(bytes);
167 if (oi < 0 || (u_int)oi != bytes - 1) {
169 "oi %d != bin_size %d", oi, bytes);
174 buffer_put_string(buffer, buf+hasnohigh, bytes-hasnohigh);
175 memset(buf, 0, bytes);