You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Marius, I have some questions about your code in main.cpp under the test folder
The function test_multiexp() has _size variable for setting different sizes, it works well using your initial code. However, when I changed the _size from 1<<18 to 1<<10. (Since 1<<10 needs shorter time), then the result doesn't match. I didn't find the reason why it mismatches, could you help me check why? The only change I made is changing "1<<18" to "1<<10"
I found that, it's also wrong if _size is less than 1<<14 (like 1<<13, 1<<12, 1<<10, and etc)
The error is below.
I see, thanks for your reply! I will read that part carefully. But it seems that 1<<14 or bigger than this doesn't need to change the size there? (Also, btw, does it support other sizes which are not powers of 2?)
Currently it doesn't support sizes not powers of 2. In theory you can just leave the empty elements as zero. However since the input data is in monty form not real form, the "zero element" becomes the neutral element regarding multiplication in the finite field I think.
Hi Marius, I have some questions about your code in
main.cpp
under thetest
folderThe function
test_multiexp()
has_size
variable for setting different sizes, it works well using your initial code. However, when I changed the_size
from 1<<18 to 1<<10. (Since 1<<10 needs shorter time), then the result doesn't match. I didn't find the reason why it mismatches, could you help me check why? The only change I made is changing "1<<18" to "1<<10"I found that, it's also wrong if
_size
is less than1<<14
(like1<<13, 1<<12, 1<<10
, and etc)The error is below.
The text was updated successfully, but these errors were encountered: