This commit is contained in:
Magnus von Wachenfeldt 2021-08-26 14:38:23 +02:00
parent 4f73cdb7af
commit d894570bd4
Signed by: magnus
GPG Key ID: A469F7D71D09F795

View File

@ -5,17 +5,12 @@
* License MIT * License MIT
*/ */
var constants = require('constants');
var rsa = require('./libs/rsa.js'); var rsa = require('./libs/rsa.js');
var _ = require('./utils')._; var _ = require('./utils')._;
var utils = require('./utils'); var utils = require('./utils');
var schemes = require('./schemes/schemes.js'); var schemes = require('./schemes/schemes.js');
var formats = require('./formats/formats.js'); var formats = require('./formats/formats.js');
if (typeof constants.RSA_NO_PADDING === "undefined") {
//patch for node v0.10.x, constants do not defined
constants.RSA_NO_PADDING = 3;
}
module.exports = (function () { module.exports = (function () {
var SUPPORTED_HASH_ALGORITHMS = { var SUPPORTED_HASH_ALGORITHMS = {