Lines Matching full:update
16 const a1 = crypto.createHash('sha1').update('Test123').digest('hex');
17 const a2 = crypto.createHash('sha256').update('Test123').digest('base64');
18 const a3 = crypto.createHash('sha512').update('Test123').digest(); // buffer
19 const a4 = crypto.createHash('sha1').update('Test123').digest('buffer');
45 const a0 = crypto.createHash(cryptoType).update('Test123').digest(digest);
91 const h1 = crypto.createHash('sha1').update('Test123').digest('hex');
92 const h2 = crypto.createHash('sha1').update('Test').update('123').digest('hex');
100 sha1Hash.update(data);
126 // arg type to update method should include all possible types
128 () => crypto.createHash('sha256').update(),
135 const hutf8 = crypto.createHash('sha512').update('УТФ-8 text').digest('hex');
143 crypto.createHash('sha512').update('УТФ-8 text', 'latin1').digest('hex'));
156 () => h3.update('foo'),
163 crypto.createHash('sha256').update('test').digest('ucs2'),
164 crypto.createHash('sha256').update('test').digest().toString('ucs2'));
234 }).update('The message is shorter than the hash!')
272 const a = crypto.createHash('sha512').update('abc');
274 const c = b.copy().update('def');
275 const d = crypto.createHash('sha512').update('abcdef');