Home
last modified time | relevance | path

Searched refs:obuf (Results 1 – 3 of 3) sorted by relevance

/mbedtls-development/tests/src/
A Dhelpers.c125 int mbedtls_test_unhexify( unsigned char *obuf, in mbedtls_test_unhexify() argument
150 *(obuf++) = ( uc << 4 ) | uc2; in mbedtls_test_unhexify()
156 void mbedtls_test_hexify( unsigned char *obuf, in mbedtls_test_hexify() argument
168 *obuf++ = '0' + h; in mbedtls_test_hexify()
170 *obuf++ = 'a' + h - 10; in mbedtls_test_hexify()
173 *obuf++ = '0' + l; in mbedtls_test_hexify()
175 *obuf++ = 'a' + l - 10; in mbedtls_test_hexify()
197 unsigned char *obuf; in mbedtls_test_unhexify_alloc() local
205 obuf = mbedtls_calloc( 1, *olen ); in mbedtls_test_unhexify_alloc()
206 TEST_HELPER_ASSERT( obuf != NULL ); in mbedtls_test_unhexify_alloc()
[all …]
/mbedtls-development/tests/include/test/
A Dhelpers.h175 int mbedtls_test_unhexify( unsigned char *obuf, size_t obufmax,
178 void mbedtls_test_hexify( unsigned char *obuf,
/mbedtls-development/library/
A Dssl_msg.c3168 memcpy( obuf, in, 25 ); in ssl_check_dtls_clihlo_cookie()
3169 obuf[13] = MBEDTLS_SSL_HS_HELLO_VERIFY_REQUEST; in ssl_check_dtls_clihlo_cookie()
3170 obuf[25] = 0xfe; in ssl_check_dtls_clihlo_cookie()
3171 obuf[26] = 0xff; in ssl_check_dtls_clihlo_cookie()
3174 p = obuf + 28; in ssl_check_dtls_clihlo_cookie()
3181 *olen = p - obuf; in ssl_check_dtls_clihlo_cookie()
3184 obuf[27] = (unsigned char)( *olen - 28 ); in ssl_check_dtls_clihlo_cookie()
3186 obuf[14] = obuf[22] = MBEDTLS_BYTE_2( *olen - 25 ); in ssl_check_dtls_clihlo_cookie()
3187 obuf[15] = obuf[23] = MBEDTLS_BYTE_1( *olen - 25 ); in ssl_check_dtls_clihlo_cookie()
3188 obuf[16] = obuf[24] = MBEDTLS_BYTE_0( *olen - 25 ); in ssl_check_dtls_clihlo_cookie()
[all …]

Completed in 11 milliseconds