Closed gogoex closed 1 year ago
Why do you call blsInit
at first? Your strategy seems very cumbersome.
If you want to clear those variables before calling blsInit
, then how about memset(&x, 0, sizeof(x))
instead of mclBnXX_clear
?
Thanks. I will have it a try. I have one question; is calling memset for the top-level structure equivalent to calling memset for each leaf-level type of a structure regardless of the architecture or the compiler used? Or is it safer to call memset for each leaf-level type i.e. uint64_t in this case?
That solved our problem. Thanks. I will close this issue
Thank you for your help in #98 and #99.
If we can only call
mclBnXX_clear
function when a class containing mcl classes is instantiated as a non-static variable, and avoid calling it when the class is instantiated as a static variable, that can be our solution. In pseudo code,Do you have any idea how this can be achieved?