Lines Matching defs:bits
108 /* DER represents 0 with a sign bit (0=nonnegative) and 7 value bits, not
269 size_t bits)
276 byte_len = (bits + 7) / 8;
277 unused_bits = (byte_len * 8) - bits;
281 * of the bitstring. Trailing 0s are considered part of the 'unused' bits
284 if (bits != 0) {
296 bits--;
297 if (bits == 0) {
301 if (bits % 8 == 0) {
307 return mbedtls_asn1_write_bitstring(p, start, buf, bits);
311 const unsigned char *buf, size_t bits)
316 byte_len = (bits + 7) / 8;
317 unused_bits = (byte_len * 8) - bits;
325 /* Write the bitstring. Ensure the unused bits are zeroed */
333 /* Write unused bits */