Lines Matching refs:p
22 unsigned char *p;
29 p = buf + GUARD_LEN + buf_len;
31 ret = mbedtls_asn1_write_octet_string( &p, buf + GUARD_LEN, str, str_len );
43 TEST_ASSERT( p + asn1_len == buf + GUARD_LEN + buf_len );
45 TEST_ASSERT( memcmp( p, asn1, asn1_len ) == 0 );
58 unsigned char *p;
65 p = buf + GUARD_LEN + buf_len;
67 ret = mbedtls_asn1_write_ia5_string( &p, buf + GUARD_LEN, str, str_len );
79 TEST_ASSERT( p + asn1_len == buf + GUARD_LEN + buf_len );
81 TEST_ASSERT( memcmp( p, asn1, asn1_len ) == 0 );
93 unsigned char *p;
100 p = buf + GUARD_LEN + buf_len;
102 ret = mbedtls_asn1_write_len( &p, buf + GUARD_LEN, (size_t) len );
116 TEST_ASSERT( p + asn1_len == buf + GUARD_LEN + buf_len );
118 TEST_ASSERT( memcmp( p, asn1, asn1_len ) == 0 );
121 ret = mbedtls_asn1_get_len( &p, buf + GUARD_LEN + buf_len, &read_len );
135 TEST_ASSERT( p == buf + GUARD_LEN + buf_len );