use of BigInt is vulnerable to timing attacks #341
Labels
audit 🔍
This issue is related to an audit.
documentation 📖
Improvements or additions to documentation
good first issue
Good for newcomers
zk-kit/packages/poseidon-cipher/src/poseidonCipher.ts
Line 19 in c912111
implementation that uses the javascript BigInt is vulnerable to timing attacks (more info).
If constant-time operation is a requirement, this needs changes to use constant time modular math libraries.
Otherwise, dependent packages/applications should be made aware.
The text was updated successfully, but these errors were encountered: