Lines Matching refs:update
67 .update('some data')
68 .update('to hmac')
223 .update(testCase.data)
351 .update(testCase.data)
360 .update(testCase.data)
368 const a1 = crypto.createHash('sha1').update('Test123').digest('hex');
369 const a2 = crypto.createHash('sha256').update('Test123').digest('base64');
370 const a3 = crypto.createHash('sha512').update('Test123').digest(); // binary
371 const a4 = crypto.createHash('sha1').update('Test123').digest('buffer');
374 const a0 = crypto.createHash('md5').update('Test123').digest('latin1');
403 const h1 = crypto.createHash('sha1').update('Test123').digest('hex');
404 const h2 = crypto.createHash('sha1').update('Test').update('123')
415 sha1Hash.update(data);
434 .update('Test123')
437 .update('Test')
438 .update('123')
443 .update('Test123')
446 .update('Test')
447 .update('123')
452 .update('Test123')
455 .update('Test')
456 .update('123')
469 let ciph = cipher.update(plaintext, 'utf8', 'hex');
474 let txt = decipher.update(ciph, 'hex', 'utf8');
492 let ciph = cipher.update(plaintext, 'utf8', 'base64');
496 let txt = decipher.update(ciph, 'base64', 'utf8');
510 let ciph = cipher.update(plaintext, 'utf8', 'hex');
514 let txt = decipher.update(ciph, 'hex', 'utf8');
528 let ciph = cipher.update(plaintext, 'utf8', 'buffer');
532 let txt = decipher.update(ciph, 'buffer', 'utf8');
546 let ciph = cipher.update(plaintext, 'utf8', 'buffer');
550 let txt = decipher.update(ciph, 'buffer', 'utf8');
574 // update() should only take buffers / strings
576 () => crypto.createHash('sha1').update({ foo: 'bar' }),
626 rsaSign.update(rsaPubPem);
634 rsaVerify.update(rsaPubPem);
653 sign.update(input);
659 verify.update(input);
677 sign.update(input);
681 verify.update(input);