Searched refs:byte_len (Results 1 – 2 of 2) sorted by relevance
270 size_t unused_bits, byte_len; in mbedtls_asn1_write_named_bitstring() local275 byte_len = (bits + 7) / 8; in mbedtls_asn1_write_named_bitstring()276 unused_bits = (byte_len * 8) - bits; in mbedtls_asn1_write_named_bitstring()284 cur_byte = buf + byte_len - 1; in mbedtls_asn1_write_named_bitstring()313 size_t unused_bits, byte_len; in mbedtls_asn1_write_bitstring() local315 byte_len = (bits + 7) / 8; in mbedtls_asn1_write_bitstring()316 unused_bits = (byte_len * 8) - bits; in mbedtls_asn1_write_bitstring()318 if (*p < start || (size_t) (*p - start) < byte_len + 1) { in mbedtls_asn1_write_bitstring()322 len = byte_len + 1; in mbedtls_asn1_write_bitstring()325 if (byte_len > 0) { in mbedtls_asn1_write_bitstring()[all …]
38 size_t byte_len = (hex_len + 1) / 2; in mbedtls_test_read_mpi_core() local39 *plimbs = CHARS_TO_LIMBS(byte_len); in mbedtls_test_read_mpi_core()54 if (byte_len % sizeof(mbedtls_mpi_uint) != 0) { in mbedtls_test_read_mpi_core()55 byte_start += sizeof(mbedtls_mpi_uint) - byte_len % sizeof(mbedtls_mpi_uint); in mbedtls_test_read_mpi_core()62 --byte_len; in mbedtls_test_read_mpi_core()65 byte_len, in mbedtls_test_read_mpi_core()67 &byte_len) == 0); in mbedtls_test_read_mpi_core()