Improve mbedtls_ct_memmove_left w.r.t. const-flow tests
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/tests/suites/test_suite_constant_time.function b/tests/suites/test_suite_constant_time.function
index dbcc9f7..d8a1fcc 100644
--- a/tests/suites/test_suite_constant_time.function
+++ b/tests/suites/test_suite_constant_time.function
@@ -329,11 +329,10 @@
buf_expected[i] = buf[i];
}
- //Note: Marking o as secret causes false positives from Memsan
- //TEST_CF_SECRET(&o, sizeof(o));
+ TEST_CF_SECRET(&o, sizeof(o));
TEST_CF_SECRET(buf, l);
mbedtls_ct_memmove_left(buf, l, o);
- //TEST_CF_PUBLIC(&o, sizeof(o));
+ TEST_CF_PUBLIC(&o, sizeof(o));
TEST_CF_PUBLIC(buf, l);
if (l > 0) {