aboutsummaryrefslogtreecommitdiff
path: root/node_modules/public-encrypt/withPublic.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/public-encrypt/withPublic.js')
-rw-r--r--node_modules/public-encrypt/withPublic.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/node_modules/public-encrypt/withPublic.js b/node_modules/public-encrypt/withPublic.js
deleted file mode 100644
index abdbe35c1..000000000
--- a/node_modules/public-encrypt/withPublic.js
+++ /dev/null
@@ -1,10 +0,0 @@
-var bn = require('bn.js');
-function withPublic(paddedMsg, key) {
- return new Buffer(paddedMsg
- .toRed(bn.mont(key.modulus))
- .redPow(new bn(key.publicExponent))
- .fromRed()
- .toArray());
-}
-
-module.exports = withPublic; \ No newline at end of file