Lines Matching refs:salt
49083 function EVP_BytesToKey(password, salt, keyBits, ivLen) {
49086 if (salt) {
49087 if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, 'binary');
49088 if (salt.length !== 8) throw new RangeError('salt should be Buffer with 8 byte length');
49100 if (salt) hash.update(salt);
70218 var salt = data.algorithm.decrypt.kde.kdeparams.salt;
70224 var key = compat.pbkdf2Sync(password, salt, iters, keylen, 'sha1');
70290 function browserPbkdf2(password, salt, iterations, length, algo) {
70296 salt: salt,
70319 module.exports = function (password, salt, iterations, keylen, digest, callback) {
70333 out = sync(password, salt, iterations, keylen, digest);
70344 salt = toBuffer(salt, defaultEncoding, 'Salt');
70347 if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo);
70348 return sync(password, salt, iterations, keylen, digest);
70477 function pbkdf2(password, salt, iterations, keylen, digest) {
70480 salt = toBuffer(salt, defaultEncoding, 'Salt');
70482 var hmac = new Hmac(digest, password, salt.length);
70484 var block1 = Buffer.allocUnsafe(salt.length + 4);
70485 salt.copy(block1, 0, 0, salt.length);
70491 block1.writeUInt32BE(i, salt.length);