mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00: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++ )
|
||||
{
|
||||
if( sig[idx] != 0x7E ) {
|
||||
return 1;
|
||||
}
|
||||
TEST_EQUAL( sig[idx], 0x7E );
|
||||
}
|
||||
|
||||
return 0;
|
||||
return( 0 );
|
||||
|
||||
exit:
|
||||
return( -1 );
|
||||
}
|
||||
#endif /* defined(MBEDTLS_TEST_HOOKS) */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user