Searched refs:byte_length (Results 1 – 2 of 2) sorted by relevance
415 size_t byte_length = ( bits + 7 ) / 8;416 TEST_ASSERT( bitstring->len >= byte_length );419 ASSERT_ALLOC( masked_bitstring, byte_length );420 if( byte_length != 0 )422 memcpy( masked_bitstring, bitstring->x, byte_length );424 masked_bitstring[byte_length - 1] &= ~( 0xff >> ( bits % 8 ) );430 while( byte_length > 0 && masked_bitstring[byte_length - 1] == 0 )431 --byte_length;432 value_bits = 8 * byte_length;433 if( byte_length > 0 )[all …]
153 size_t byte_length = ( ec->grp.pbits + 7 ) / 8; in pk_write_ec_private() local156 ret = mbedtls_ecp_write_key( ec, tmp, byte_length ); in pk_write_ec_private()159 ret = mbedtls_asn1_write_octet_string( p, start, tmp, byte_length ); in pk_write_ec_private()162 mbedtls_platform_zeroize( tmp, byte_length ); in pk_write_ec_private()