Home
last modified time | relevance | path

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

/mbedtls-latest/tests/src/
Dhelpers.c552 int mbedtls_test_unhexify(unsigned char *obuf, in mbedtls_test_unhexify() argument
580 *(obuf++) = (uc << 4) | uc2; in mbedtls_test_unhexify()
586 void mbedtls_test_hexify(unsigned char *obuf, in mbedtls_test_hexify() argument
597 *obuf++ = '0' + h; in mbedtls_test_hexify()
599 *obuf++ = 'a' + h - 10; in mbedtls_test_hexify()
603 *obuf++ = '0' + l; in mbedtls_test_hexify()
605 *obuf++ = 'a' + l - 10; in mbedtls_test_hexify()
628 unsigned char *obuf; in mbedtls_test_unhexify_alloc() local
637 obuf = mbedtls_calloc(1, *olen); in mbedtls_test_unhexify_alloc()
638 TEST_HELPER_ASSERT(obuf != NULL); in mbedtls_test_unhexify_alloc()
[all …]
/mbedtls-latest/tests/include/test/
Dhelpers.h342 int mbedtls_test_unhexify(unsigned char *obuf, size_t obufmax,
345 void mbedtls_test_hexify(unsigned char *obuf,
/mbedtls-latest/tests/suites/
Dtest_suite_bignum_mod.function646 unsigned char *obuf = NULL;
701 TEST_CALLOC(obuf, obuf_sizes[i]);
702 TEST_EQUAL(0, mbedtls_mpi_mod_write(&r, &m, obuf, obuf_sizes[i], endian));
726 TEST_MEMORY_COMPARE(obuf, obuf_sizes[i], ref_buf, obuf_sizes[i]);
730 mbedtls_free(obuf);
731 obuf = NULL;
739 mbedtls_free(obuf);
/mbedtls-latest/library/
Dssl_msg.c3476 unsigned char *obuf, size_t buf_len, size_t *olen) in mbedtls_ssl_check_dtls_clihlo_cookie() argument
3579 memcpy(obuf, in, 25); in mbedtls_ssl_check_dtls_clihlo_cookie()
3580 obuf[13] = MBEDTLS_SSL_HS_HELLO_VERIFY_REQUEST; in mbedtls_ssl_check_dtls_clihlo_cookie()
3581 obuf[25] = 0xfe; in mbedtls_ssl_check_dtls_clihlo_cookie()
3582 obuf[26] = 0xff; in mbedtls_ssl_check_dtls_clihlo_cookie()
3585 p = obuf + 28; in mbedtls_ssl_check_dtls_clihlo_cookie()
3587 &p, obuf + buf_len, in mbedtls_ssl_check_dtls_clihlo_cookie()
3592 *olen = (size_t) (p - obuf); in mbedtls_ssl_check_dtls_clihlo_cookie()
3595 obuf[27] = (unsigned char) (*olen - 28); in mbedtls_ssl_check_dtls_clihlo_cookie()
3597 obuf[14] = obuf[22] = MBEDTLS_BYTE_2(*olen - 25); in mbedtls_ssl_check_dtls_clihlo_cookie()
[all …]
Dssl_misc.h2863 unsigned char *obuf, size_t buf_len, size_t *olen);
/mbedtls-latest/programs/x509/
Dcert_write.c252 static int parse_serial_decimal_format(unsigned char *obuf, size_t obufmax, in parse_serial_decimal_format() argument
257 unsigned char *p = obuf; in parse_serial_decimal_format()