asmcrypto / asmcrypto.js

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

Fix typo on seed.byteOffset on Random_seed (older browsers) #106

Closed mariociabarra closed 8 years ago

mariociabarra commented 8 years ago

On older browsers not supporting window.crypto/msCrypto, RSA_OAEP_encrypt, RSA_PSS_sign gather random values from calling seed with a subarray (with an offset) on the underlying buffer, but this typo is causing the Random_seed to use the original buffer at index 0.