diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-12-20 20:37:36 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 16:07:36 +0100 |
commit | 04fe5130036c4a587ae60972136d8b0efa4e5831 (patch) | |
tree | 7d642b52cd0acac924711f0fe94a622ce27c3821 /ext/crypto/00_crypto.js | |
parent | 17d81ad2ef0001f862ba0a324e2f4d28f1cfdc78 (diff) |
refactor(ext/crypto): cleanup decrypt code (#13120)
Diffstat (limited to 'ext/crypto/00_crypto.js')
-rw-r--r-- | ext/crypto/00_crypto.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js index f15238b3a..ca7960427 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -572,7 +572,7 @@ // 3-5. const hashAlgorithm = key[_algorithm].hash.name; - const plainText = await core.opAsync("op_crypto_decrypt_key", { + const plainText = await core.opAsync("op_crypto_decrypt", { key: keyData, algorithm: "RSA-OAEP", hash: hashAlgorithm, @@ -593,7 +593,7 @@ ); } - const plainText = await core.opAsync("op_crypto_decrypt_key", { + const plainText = await core.opAsync("op_crypto_decrypt", { key: keyData, algorithm: "AES-CBC", iv: normalizedAlgorithm.iv, |