Skip to content

Any existing RSA circuit implementation? #1199

Closed Answered by ivokub
doutv asked this question in Q&A
Discussion options

You must be logged in to vote

Field emulation allows to perform modular exponentiation for a modulus defined as witness. I think this should be sufficient for implementing RSA verification?

See Field.ModExp and test implementation.

Note that checking RSA signatures may also require doing padding computation a la RSA-OAEP or RSA-PSS. We don't have the padding implementation and I think we're not planning to implement ourselves in gnark as RSA is generally being deprecated in favor of ECC based signature schemes (Schnorr, EdDSA, ECDSA) or post-quantum secure schemes. And RSA verification for reasonable key sizes (3k+) in circuit is very inefficient.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by doutv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants