Home
last modified time | relevance | path

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

/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/
Dhelpers.function150 static int unhexify( unsigned char *obuf, const char *ibuf )
178 *obuf++ = ( c << 4 ) | c2;
184 static void hexify( unsigned char *obuf, const unsigned char *ibuf, int len )
194 *obuf++ = '0' + h;
196 *obuf++ = 'a' + h - 10;
199 *obuf++ = '0' + l;
201 *obuf++ = 'a' + l - 10;
240 unsigned char *obuf;
247 obuf = mbedtls_calloc( 1, *olen );
248 assert( obuf != NULL );
[all …]
/net-tools-3.4.0/mbedtls-2.4.0/library/
Darc4.c166 unsigned char obuf[8]; in mbedtls_arc4_self_test() local
179 mbedtls_arc4_crypt( &ctx, 8, ibuf, obuf ); in mbedtls_arc4_self_test()
181 if( memcmp( obuf, arc4_test_ct[i], 8 ) != 0 ) in mbedtls_arc4_self_test()
Dssl_tls.c3286 unsigned char *obuf, size_t buf_len, size_t *olen ) in ssl_check_dtls_clihlo_cookie() argument
3367 memcpy( obuf, in, 25 ); in ssl_check_dtls_clihlo_cookie()
3368 obuf[13] = MBEDTLS_SSL_HS_HELLO_VERIFY_REQUEST; in ssl_check_dtls_clihlo_cookie()
3369 obuf[25] = 0xfe; in ssl_check_dtls_clihlo_cookie()
3370 obuf[26] = 0xff; in ssl_check_dtls_clihlo_cookie()
3373 p = obuf + 28; in ssl_check_dtls_clihlo_cookie()
3375 &p, obuf + buf_len, cli_id, cli_id_len ) != 0 ) in ssl_check_dtls_clihlo_cookie()
3380 *olen = p - obuf; in ssl_check_dtls_clihlo_cookie()
3383 obuf[27] = (unsigned char)( *olen - 28 ); in ssl_check_dtls_clihlo_cookie()
3385 obuf[14] = obuf[22] = (unsigned char)( ( *olen - 25 ) >> 16 ); in ssl_check_dtls_clihlo_cookie()
[all …]