mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-29 16:32:32 -04:00
Properly mark LMOTS leak test as failed
Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
parent
d137c86125
commit
781f7bedb0
@ -11,12 +11,13 @@ int check_lmots_private_key_for_leak(unsigned char * sig)
|
|||||||
idx < MBEDTLS_LMOTS_SIG_LEN(MBEDTLS_LMOTS_SHA256_N32_W8);
|
idx < MBEDTLS_LMOTS_SIG_LEN(MBEDTLS_LMOTS_SHA256_N32_W8);
|
||||||
idx++ )
|
idx++ )
|
||||||
{
|
{
|
||||||
if( sig[idx] != 0x7E ) {
|
TEST_EQUAL( sig[idx], 0x7E );
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return( 0 );
|
||||||
|
|
||||||
|
exit:
|
||||||
|
return( -1 );
|
||||||
}
|
}
|
||||||
#endif /* defined(MBEDTLS_TEST_HOOKS) */
|
#endif /* defined(MBEDTLS_TEST_HOOKS) */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user