Feat/aes128#719
Conversation
Thanks for the contribution. Unfortunately right now AES in not on gnark roadmap and it would take quite some time to review the PR is correct (and most importantly, sound). I think AES is definitely worth it and allows interesting applications. Lets keep the PR open until we have more time to get back to it. |
|
Thanks for the PR and sorry for not being able to review it earlier. However I do not think it would not suit gnark standard library as is. Main issues:
In short, it would be quicker to write the gadget from scratch, but considering that it hasn't really been requested, then I don't anticipate that we would include it as is in gnark right now. |
Please find my initial aes128 and aes128 gcm implementations in this pull request.
I have implemented the naive lookup of s-box values. possible s-box lookup optimizations can be found here: https://github.com/akosba/jsnark/tree/master/JsnarkCircuitBuilder/src/examples/gadgets/blockciphers/sbox