Lines Matching refs:algo
38450 function dsaSign(hash, priv, algo) {
38459 var kv = getKey(x, q, hash, algo);
38462 k = makeKey(q, kv, algo);
38487 function getKey(x, q, hash, algo) {
38500 k = createHmac(algo, k).update(v).update(Buffer.from([0])).update(x).update(hbits).digest();
38501 v = createHmac(algo, k).update(v).digest();
38502 k = createHmac(algo, k).update(v).update(Buffer.from([1])).update(x).update(hbits).digest();
38503 v = createHmac(algo, k).update(v).digest();
38530 function makeKey(q, kv, algo) {
38538 kv.v = createHmac(algo, kv.k).update(kv.v).digest();
38543 kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer.from([0])).digest();
38544 kv.v = createHmac(algo, kv.k).update(kv.v).digest();
70220 var algo = aesid[data.algorithm.decrypt.cipher.algo.join('.')];
70223 var keylen = parseInt(algo.split('-')[1], 10) / 8;
70225 var cipher = ciphers.createDecipheriv(algo, key, iv);
70267 function checkNative(algo) {
70276 if (checks[algo] !== undefined) {
70277 return checks[algo];
70281 var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo).then(function () {
70286 checks[algo] = prom;
70290 function browserPbkdf2(password, salt, iterations, length, algo) {
70299 name: algo
70326 var algo = toBrowser[digest.toLowerCase()];
70328 if (!algo || typeof global.Promise !== 'function') {
70346 resolvePromise(checkNative(algo).then(function (resp) {
70347 if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo);