Lines Matching refs:digest
18 function pbkdf2(password, salt, iterations, keylen, digest, callback) { argument
19 if (typeof digest === 'function') {
20 callback = digest;
21 digest = undefined;
24 ({ password, salt, iterations, keylen, digest } =
25 check(password, salt, iterations, keylen, digest));
40 handleError(_pbkdf2(keybuf, password, salt, iterations, digest, wrap),
41 digest);
44 function pbkdf2Sync(password, salt, iterations, keylen, digest) { argument
45 ({ password, salt, iterations, keylen, digest } =
46 check(password, salt, iterations, keylen, digest));
48 handleError(_pbkdf2(keybuf, password, salt, iterations, digest), digest);
54 function check(password, salt, iterations, keylen, digest) { argument
55 if (typeof digest !== 'string')
56 throw new ERR_INVALID_ARG_TYPE('digest', 'string', digest);
63 return { password, salt, iterations, keylen, digest };
66 function handleError(rc, digest) { argument
68 throw new ERR_CRYPTO_INVALID_DIGEST(digest);