3 ms·
Javascript has native BigInts, and there is already an RSA implementation using them: https://github.com/i404788/tiny-rsa https://github.com/i404788/tiny-rsa
by f_devd 3y ago
Javascript has native BigInts, and there is already an RSA implementation using them: https://github.com/i404788/tiny-rsa https://github.com/i404788/tiny-rsa
- pquki4 3y agoThat's funny -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#cryptography https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... > The operations supported on BigInt values are not constant-time and are thus open to timing attacks. JavaScript BigInts therefore could be dangerous for use in cryptography without mitigating factors. Without checking the source code to understand their exact implementation, it seems questionable to implement cryptography algorithms for serious use in JavaScript.
- hajile 3y agoAn implementation using TypedArray should be in constant time.