PeculiarVentures / webcrypto-liner

webcrypto-liner is a polyfill that let's down-level User Agents (like IE/Edge) use libraries that depend on WebCrypto. (Keywords: Javascript, WebCrypto, Shim, Polyfill)
MIT License
149 stars 26 forks source link

Need to have ability to set "padding = false" for AES-ECB #42

Open YuryStrozhevsky opened 6 years ago

YuryStrozhevsky commented 6 years ago

At the moment we have only one option:

res = asmCrypto.AES_ECB.encrypt(data, key.key, true) as Uint8Array;

I need to have an option for set least parameter here to "false"

res = asmCrypto.AES_ECB.encrypt(data, key.key, parameters.padding) as Uint8Array;
YuryStrozhevsky commented 6 years ago

Of course same should be done for "decrypt" function.