mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
test_check: Move UNMARK_SECRET_DATA in test_ed25519_cosi
This commit is contained in:
parent
5f7d34a506
commit
3d6c726bc4
@ -2748,7 +2748,6 @@ START_TEST(test_ed25519_cosi) {
|
||||
for (int j = 0; j < N; j++) {
|
||||
ed25519_cosi_sign(msg, sizeof(msg), keys[j], nonces[j], R, pk, sigs[j]);
|
||||
}
|
||||
UNMARK_SECRET_DATA(keys, sizeof(keys));
|
||||
UNMARK_SECRET_DATA(sigs, sizeof(sigs));
|
||||
|
||||
ed25519_cosi_combine_signatures(sig, R, sigs, N);
|
||||
@ -2756,6 +2755,8 @@ START_TEST(test_ed25519_cosi) {
|
||||
/* check signature */
|
||||
res = ed25519_sign_open(msg, sizeof(msg), pk, sig);
|
||||
ck_assert_int_eq(res, 0);
|
||||
|
||||
UNMARK_SECRET_DATA(keys, sizeof(keys));
|
||||
}
|
||||
}
|
||||
END_TEST
|
||||
|
Loading…
Reference in New Issue
Block a user