hyperledger-labs / agora-glass_pumpkin

agora-glass_pumpkin
https://wiki.hyperledger.org/display/labs/Agora
Apache License 2.0
21 stars 11 forks source link

Can not get prime if length<16 #2

Closed wodadehencou closed 3 years ago

wodadehencou commented 4 years ago

if length<16, check prime will also pass that r % p == 0 if r==p. The biggest prime of first 2048 prime is 16bit long.

This problem exist in almost every prime generation crates

mikelodder7 commented 4 years ago

Thanks is for filing this. However can you elaborate more? What do you mean by length? The smallest bits allowed is 128.