diff options
author | Luca Casonato <hello@lcas.dev> | 2021-12-15 22:18:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 22:18:26 +0100 |
commit | f0e1a6b84c282a37a5cfd278fc145ba645ee9073 (patch) | |
tree | 4231858e8745e34bda932829911e0c71433f132a /ext/crypto/00_crypto.js | |
parent | 5a3ded66113e7a2cacae3ffb8123038450c701e8 (diff) |
refactor(ext/crypto): clean up encrypt rust code (#13094)
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 3e0af0b3c..c8c7d9810 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -3136,7 +3136,7 @@ // 3-5. const hashAlgorithm = key[_algorithm].hash.name; - const cipherText = await core.opAsync("op_crypto_encrypt_key", { + const cipherText = await core.opAsync("op_crypto_encrypt", { key: keyData, algorithm: "RSA-OAEP", hash: hashAlgorithm, @@ -3158,7 +3158,7 @@ } // 2. - const cipherText = await core.opAsync("op_crypto_encrypt_key", { + const cipherText = await core.opAsync("op_crypto_encrypt", { key: keyData, algorithm: "AES-CBC", length: key[_algorithm].length, |