mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Mark output as public before testing it
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
987984482d
commit
2729878046
@ -19,6 +19,7 @@ void mask_of_range( int low_arg, int high_arg )
|
|||||||
TEST_CF_SECRET( &c, sizeof( c ) );
|
TEST_CF_SECRET( &c, sizeof( c ) );
|
||||||
unsigned char m = mbedtls_base64_mask_of_range( low, high, c );
|
unsigned char m = mbedtls_base64_mask_of_range( low, high, c );
|
||||||
TEST_CF_PUBLIC( &c, sizeof( c ) );
|
TEST_CF_PUBLIC( &c, sizeof( c ) );
|
||||||
|
TEST_CF_PUBLIC( &m, sizeof( m ) );
|
||||||
if( low <= c && c <= high )
|
if( low <= c && c <= high )
|
||||||
TEST_EQUAL( m, 0xff );
|
TEST_EQUAL( m, 0xff );
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user