From ea7ca00c895c401af57a7201f3c41524333e7939 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 20 Feb 2023 22:22:28 +0530 Subject: perf: use ops for node:crypto ciphers (#17819) Towards #17809 --- .../_crypto/crypto_browserify/public_encrypt/mod.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js (limited to 'ext/node/polyfills/_crypto/crypto_browserify/public_encrypt/mod.js') 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); -} -- cgit v1.2.3