Lines Matching refs:size
113 const unsigned char *buf, size_t size ) in mbedtls_asn1_write_raw_buffer() argument
117 if( *p < start || (size_t)( *p - start ) < size ) in mbedtls_asn1_write_raw_buffer()
120 len = size; in mbedtls_asn1_write_raw_buffer()
294 size_t len = 0, size; in mbedtls_asn1_write_bitstring() local
296 size = ( bits / 8 ) + ( ( bits % 8 ) ? 1 : 0 ); in mbedtls_asn1_write_bitstring()
300 if( *p < start || (size_t)( *p - start ) < size + 1 ) in mbedtls_asn1_write_bitstring()
303 len = size + 1; in mbedtls_asn1_write_bitstring()
304 (*p) -= size; in mbedtls_asn1_write_bitstring()
305 memcpy( *p, buf, size ); in mbedtls_asn1_write_bitstring()
309 *--(*p) = (unsigned char) (size * 8 - bits); in mbedtls_asn1_write_bitstring()
318 const unsigned char *buf, size_t size ) in mbedtls_asn1_write_octet_string() argument
323 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_raw_buffer( p, start, buf, size ) ); in mbedtls_asn1_write_octet_string()