subscriptions-project / encryption

Apache License 2.0
7 stars 5 forks source link

♻️ Refactor AES GCM Decryption function. #13

Closed elijahsoria closed 4 years ago

elijahsoria commented 4 years ago

--Refactor decryptAesGcm function to remove decoding from function and accept decoded IV --Calls subtle.importkey once for all decryption sections instead of once per section.

Corresponding AMP PR: https://github.com/ampproject/amphtml/pull/28753