asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
660 stars 181 forks source link

AES-CTR mode does not work if plaintext is less than 16 bytes #56

Closed frankw2 closed 10 years ago

frankw2 commented 10 years ago

AES-CTR mode for encryption does not work if the plaintext is less 16 bytes. It just returns the value in plaintext. This makes it incompatible with PyCrypto and other crypto libraries.

vibornoff commented 10 years ago

Oh, thanks for paying attention, I'll take a look ASAP.