Lines Matching refs:len_bytes
53 size_t len_bytes;
59 len_bytes = (len_bits + 7) >> 3;
60 if (len_bytes > SSHBUF_MAX_BIGNUM)
62 if (sshbuf_len(buf) < 2 + len_bytes)
64 if (v != NULL && BN_bin2bn(d + 2, len_bytes, v) == NULL)
66 if (sshbuf_consume(buf, 2 + len_bytes) != 0) {
172 size_t len_bytes = (len_bits + 7) / 8;
175 if (len_bits < 0 || len_bytes > SSHBUF_MAX_BIGNUM)
177 if (BN_bn2bin(v, d) != (int)len_bytes)
179 if ((r = sshbuf_reserve(buf, len_bytes + 2, &dp)) < 0) {
184 if (len_bytes != 0)
185 memcpy(dp + 2, d, len_bytes);