Home
last modified time | relevance | path

Searched refs:len_bytes (Results 1 – 3 of 3) sorted by relevance

/external/openssh/
Dsshbuf-getput-crypto.c53 size_t len_bytes; in sshbuf_get_bignum1() local
59 len_bytes = (len_bits + 7) >> 3; in sshbuf_get_bignum1()
60 if (len_bytes > SSHBUF_MAX_BIGNUM) in sshbuf_get_bignum1()
62 if (sshbuf_len(buf) < 2 + len_bytes) in sshbuf_get_bignum1()
64 if (v != NULL && BN_bin2bn(d + 2, len_bytes, v) == NULL) in sshbuf_get_bignum1()
66 if (sshbuf_consume(buf, 2 + len_bytes) != 0) { in sshbuf_get_bignum1()
172 size_t len_bytes = (len_bits + 7) / 8; in sshbuf_put_bignum1() local
175 if (len_bits < 0 || len_bytes > SSHBUF_MAX_BIGNUM) in sshbuf_put_bignum1()
177 if (BN_bn2bin(v, d) != (int)len_bytes) in sshbuf_put_bignum1()
179 if ((r = sshbuf_reserve(buf, len_bytes + 2, &dp)) < 0) { in sshbuf_put_bignum1()
[all …]
/external/boringssl/src/ssl/test/
Dpacketed_bio.cc138 uint8_t len_bytes[4]; in PacketedRead() local
139 ret = ReadAll(bio->next_bio, len_bytes, sizeof(len_bytes)); in PacketedRead()
145 uint32_t len = (len_bytes[0] << 24) | (len_bytes[1] << 16) | in PacketedRead()
146 (len_bytes[2] << 8) | len_bytes[3]; in PacketedRead()
/external/elfutils/src/libdw/
Ddwarf_getpubnames.c74 int len_bytes = 4; in get_offsets() local
79 len_bytes = 8; in get_offsets()
89 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets()
90 mem[cnt].address_len = len_bytes; in get_offsets()
93 || len - (2 + 2 * len_bytes) > max_size - mem[cnt].set_start) in get_offsets()
108 readp + 2, len_bytes, in get_offsets()