Lines Matching refs:buf
19 unsigned char buf[4096];
42 ret = mbedtls_x509write_csr_pem( &req, buf, sizeof(buf),
46 pem_len = strlen( (char *) buf );
54 TEST_ASSERT( memcmp( buf, check_buf, pem_len - 1 ) == 0 );
56 der_len = mbedtls_x509write_csr_der( &req, buf, sizeof( buf ),
63 ret = mbedtls_x509write_csr_der( &req, buf, (size_t)( der_len - 1 ),
83 unsigned char buf[4096];
126 ret = mbedtls_x509write_crt_pem( &crt, buf, sizeof(buf),
130 pem_len = strlen( (char *) buf );
139 TEST_ASSERT( memcmp( buf, check_buf, pem_len - 1 ) == 0 );
141 der_len = mbedtls_x509write_crt_der( &crt, buf, sizeof( buf ),
148 ret = mbedtls_x509write_crt_der( &crt, buf, (size_t)( der_len - 1 ),
167 unsigned char buf[1024], out[1024], *c;
171 memset( buf, 0, sizeof( buf ) );
172 c = buf + sizeof( buf );
180 ret = mbedtls_x509_write_names( &c, buf, names );
183 TEST_ASSERT( mbedtls_asn1_get_tag( &c, buf + sizeof( buf ), &len,
185 TEST_ASSERT( mbedtls_x509_get_name( &c, buf + sizeof( buf ), &parsed ) == 0 );