File indexing completed on 2024-05-19 04:42:03

0001 /*
0002     SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 var buffer = require("buffer");
0008 
0009 exports.getCiphers = function () { return []; };
0010 exports.getCiphers();
0011 
0012 exports.getHashes = function () { return []; };
0013 exports.getHashes();
0014 
0015 exports.createCredentials = function (details) { return new Object(); };
0016 exports.createCredentials(new Object());
0017 
0018 exports.createHash = function (algorithm) { return new Hash(); };
0019 exports.createHash("");
0020 
0021 /*
0022  * exports.Hash
0023  */
0024 function Hash() { return ; }
0025 exports.Hash = Hash;
0026 
0027 exports.Hash.prototype.update = function (data, input_encoding) { return ; };
0028 exports.Hash.prototype.update("", "");
0029 
0030 exports.Hash.prototype.digest = function (encoding) { return ""; };
0031 exports.Hash.prototype.digest("");
0032 
0033 
0034 exports.createHmac = function (algorithm, key) { return new Hmac(); };
0035 exports.createHmac("", "");
0036 
0037 /*
0038  * exports.Hmac
0039  */
0040 function Hmac() { return ; }
0041 exports.Hmac = Hmac;
0042 
0043 exports.Hmac.prototype.update = function (data) { return ; };
0044 exports.Hmac.prototype.update("");
0045 
0046 exports.Hmac.prototype.digest = function (encoding) { return ""; };
0047 exports.Hmac.prototype.digest("");
0048 
0049 
0050 exports.createCipher = function (algorithm, password) { return new Cipher(); };
0051 exports.createCipher("", "");
0052 
0053 exports.createCipheriv = function (algorithm, password, iv) { return new Cipher(); };
0054 exports.createCipheriv("", "", "");
0055 
0056 /*
0057  * exports.Cipher
0058  */
0059 function Cipher() { return ; }
0060 exports.Cipher = Cipher;
0061 
0062 exports.Cipher.prototype.update = function (data, input_encoding, output_encoding) { return ; };
0063 exports.Cipher.prototype.update("", "", "");
0064 
0065 exports.Cipher.prototype.final = function (output_encoding) { return ""; };
0066 exports.Cipher.prototype.final("");
0067 
0068 exports.Cipher.prototype.setAutoPadding = function (auto_padding) { return ; };
0069 exports.Cipher.prototype.setAutoPadding(true);
0070 
0071 
0072 exports.createDecipher = function (algorithm, password) { return new Decipher(); };
0073 exports.createDecipher("", "");
0074 
0075 exports.createDecipheriv = function (algorithm, password, iv) { return new Decipher(); };
0076 exports.createDecipheriv("", "", "");
0077 
0078 /*
0079  * exports.Decipher
0080  */
0081 function Decipher() { return ; }
0082 exports.Decipher = Decipher;
0083 
0084 exports.Decipher.prototype.update = function (data, input_encoding, output_encoding) { return ; };
0085 exports.Decipher.prototype.update("", "", "");
0086 
0087 exports.Decipher.prototype.final = function (output_encoding) { return ""; };
0088 exports.Decipher.prototype.final("");
0089 
0090 exports.Decipher.prototype.setAutoPadding = function (auto_padding) { return ; };
0091 exports.Decipher.prototype.setAutoPadding(true);
0092 
0093 
0094 exports.createSign = function (algorithm) { return new Sign(); };
0095 exports.createSign("");
0096 
0097 /*
0098  * exports.Sign
0099  */
0100 function Sign() { return ; }
0101 exports.Sign = Sign;
0102 
0103 exports.Sign.prototype.update = function (data) { return ; };
0104 exports.Sign.prototype.update("");
0105 
0106 exports.Sign.prototype.sign = function (private_key, output_format) { return ""; };
0107 exports.Sign.prototype.sign("", "");
0108 
0109 
0110 exports.createVerify = function (algorithm) { return new Verify(); };
0111 exports.createVerify("");
0112 
0113 /*
0114  * exports.Verify
0115  */
0116 function Verify() { return ; }
0117 exports.Verify = Verify;
0118 
0119 exports.Verify.prototype.update = function (data) { return ; };
0120 exports.Verify.prototype.update("");
0121 
0122 exports.Verify.prototype.verify = function (object, signature, signature_format) { return true; };
0123 exports.Verify.prototype.verify("", "", "");
0124 
0125 
0126 exports.createDiffieHellman = function (prime_length) { return new DiffieHellman(); };
0127 exports.createDiffieHellman(1);
0128 
0129 /*
0130  * exports.DiffieHellman
0131  */
0132 function DiffieHellman() { return ; }
0133 exports.DiffieHellman = DiffieHellman;
0134 
0135 exports.DiffieHellman.prototype.generateKeys = function (encoding) { return ""; };
0136 exports.DiffieHellman.prototype.generateKeys("");
0137 
0138 exports.DiffieHellman.prototype.computeSecret = function (other_public_key, input_encoding, output_encoding) { return ""; };
0139 exports.DiffieHellman.prototype.computeSecret("", "", "");
0140 
0141 exports.DiffieHellman.prototype.getPrime = function (encoding) { return ""; };
0142 exports.DiffieHellman.prototype.getPrime("");
0143 
0144 exports.DiffieHellman.prototype.getGenerator = function (encoding) { return ""; };
0145 exports.DiffieHellman.prototype.getGenerator("");
0146 
0147 exports.DiffieHellman.prototype.getPublicKey = function (encoding) { return ""; };
0148 exports.DiffieHellman.prototype.getPublicKey("");
0149 
0150 exports.DiffieHellman.prototype.getPrivateKey = function (encoding) { return ""; };
0151 exports.DiffieHellman.prototype.getPrivateKey("");
0152 
0153 exports.DiffieHellman.prototype.setPublicKey = function (public_key, encoding) { return ; };
0154 exports.DiffieHellman.prototype.setPublicKey("", "");
0155 
0156 exports.DiffieHellman.prototype.setPrivateKey = function (private_key, encoding) { return ; };
0157 exports.DiffieHellman.prototype.setPrivateKey("", "");
0158 
0159 
0160 exports.getDiffieHellman = function (group_name) { return new DiffieHellman(); };
0161 exports.getDiffieHellman("");
0162 
0163 exports.pbkdf2 = function (password, salt, iterations, keylen, callback) { return ; };
0164 exports.pbkdf2("", "", 1, 1, function(){});
0165 
0166 exports.pbkdf2Sync = function (password, salt, iterations, keylen) { return ""; };
0167 exports.pbkdf2Sync("", "", 1, 1);
0168 
0169 exports.randomBytes = function (size, callback) { return new buffer.Buffer(); };
0170 exports.randomBytes(1, function(){});
0171 
0172 exports.pseudoRandomBytes = function (size, callback) { return new buffer.Buffer(); };
0173 exports.pseudoRandomBytes(1, function(){});
0174 
0175 exports.DEFAULT_ENCODING = "";
0176