mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 08:45:50 +01:00
Start testing cf_hmac() for constant flow
Currently this breaks all.sh component test_memsan_constant_flow, just as expected, as the current implementation is not constant flow. This will be fixed in the next commit. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
40597cef01
commit
961b4dd407
@ -118,10 +118,13 @@ void ssl_cf_hmac( int hash )
|
|||||||
data[i] = ( i & 0xff ) ^ rec_num;
|
data[i] = ( i & 0xff ) ^ rec_num;
|
||||||
|
|
||||||
/* Get the function's result */
|
/* Get the function's result */
|
||||||
|
TEST_CF_SECRET( &in_len, sizeof( in_len ) );
|
||||||
TEST_ASSERT( 0 == mbedtls_ssl_cf_hmac( &ctx, add_data, sizeof( add_data ),
|
TEST_ASSERT( 0 == mbedtls_ssl_cf_hmac( &ctx, add_data, sizeof( add_data ),
|
||||||
data, in_len,
|
data, in_len,
|
||||||
min_in_len, max_in_len,
|
min_in_len, max_in_len,
|
||||||
out ) );
|
out ) );
|
||||||
|
TEST_CF_PUBLIC( &in_len, sizeof( in_len ) );
|
||||||
|
TEST_CF_PUBLIC( out, out_len );
|
||||||
|
|
||||||
/* Compute the reference result */
|
/* Compute the reference result */
|
||||||
TEST_ASSERT( 0 == mbedtls_md_hmac_update( &ref_ctx, add_data,
|
TEST_ASSERT( 0 == mbedtls_md_hmac_update( &ref_ctx, add_data,
|
||||||
|
Loading…
Reference in New Issue
Block a user