asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
659 stars 182 forks source link

RSA KeyGeneration slower than OpenPGP #93

Closed jochenonline closed 8 years ago

jochenonline commented 8 years ago

When comparing RSA-Key-Generation between asmcrypto and OpenPGP on the same machine and in same browser and with the same bit-length (4096) OpenPGP is almost twice as fast as asmcrypto (average time 13,3 sec vs 20,2 sec). Do you see any obvious reason for that or am I comparing apples with oranges?

vibornoff commented 8 years ago

Is your result statistically significant? I mean did you calculate Standard deviation along with the average time?

jochenonline commented 8 years ago

Standard deviations:

So the times of OpenPGP are also much more stable. Theses are the times we have measured:

asmcrypto:

OpenPGP:

vibornoff commented 8 years ago

Having a brief look to the opengpg.js source I suppose it's because your browser supports WebCrypto API :)