diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-02-20 22:22:28 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 22:22:28 +0530 |
| commit | ea7ca00c895c401af57a7201f3c41524333e7939 (patch) | |
| tree | a238ea54a003111ab6c1b7b1cb14e0669cb4f7af /ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js | |
| parent | a16c11c5d10052c688ba4c2eca09fd1a225e395a (diff) | |
perf: use ops for node:crypto ciphers (#17819)
Towards #17809
Diffstat (limited to 'ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js')
| -rw-r--r-- | ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js b/ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js deleted file mode 100644 index a91197aef..000000000 --- a/ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -// Copyright 2017 Calvin Metcalf. All rights reserved. MIT license. - -import { publicEncrypt } from "internal:deno_node/polyfills/_crypto/crypto_browserify/public_encrypt/public_encrypt.js"; -import { privateDecrypt } from "internal:deno_node/polyfills/_crypto/crypto_browserify/public_encrypt/private_decrypt.js"; - -export { privateDecrypt, publicEncrypt }; - -export function privateEncrypt(key, buf) { - return publicEncrypt(key, buf, true); -} - -export function publicDecrypt(key, buf) { - return privateDecrypt(key, buf, true); -} |
