Open bgregoir opened 5 months ago
this kind of code are tricking to translate in jasmin:
k = 0; for (i = 0; i < K; ++i) { for (j = 0; j < N; ++j) { h->vec[i].coeffs[j] = 0; } if (sig[OMEGA + i] < k || sig[OMEGA + i] > OMEGA) { return 1; } for (j = k; j < sig[OMEGA + i]; ++j) { /* Coefficients are ordered for strong unforgeability */ if (j > k && sig[j] <= sig[j - 1]) { return 1; } h->vec[i].coeffs[sig[j]] = 1; } k = sig[OMEGA + i]; } /* Extra indices are zero for strong unforgeability */ for (j = k; j < OMEGA; ++j) { if (sig[j]) { return 1; } }
I think being able to exit loop early will help.
If I understand correctly, what you would like to have is a break keyword ?
break
Yes
this kind of code are tricking to translate in jasmin:
I think being able to exit loop early will help.