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
RSA factorization example from the playground (https://play.gnark.io/?id=rsa) is insecure and unsound. As an official example, this can lead/motivate developer to mistakenly implement circuit this way which overflows the field scalar.
Possible Fix
Modify the example to use secure implementation or completely remove the example from the list.
Indeed, the curve we use for the playground example has smaller scalar field than the RSA modulus. I think we need to either update the example to have smaller values (smaller RSA) or add an example which uses non-native arithmetic for the multiplication to ensure we don't overflow.
I'll create a tracking issue, thanks for reporting.
RSA factorization example from the playground (https://play.gnark.io/?id=rsa) is insecure and unsound. As an official example, this can lead/motivate developer to mistakenly implement circuit this way which overflows the field scalar.
Possible Fix
Modify the example to use secure implementation or completely remove the example from the list.
Steps to Reproduce
p = 11
andq = 1911206752956283776164357558475291228069948176341344037444675585134493642681
in witness.jsonThe text was updated successfully, but these errors were encountered: