From 9829f153ff71bf552b2498abc79ac39954c35156 Mon Sep 17 00:00:00 2001 From: olehs Date: Thu, 28 May 2020 00:46:32 +0300 Subject: [PATCH] Added most used RSA constant RSA_PKCS1_PADDING --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index f644543..5cf270c 100644 --- a/index.js +++ b/index.js @@ -90,6 +90,10 @@ var rf = require('randomfill') exports.randomFill = rf.randomFill exports.randomFillSync = rf.randomFillSync +exports.constants = { + RSA_PKCS1_PADDING: 1 +} + // the least I can do is make error messages for the rest of the node.js/crypto api. ;[ 'createCredentials'