Lines Matching refs:outputLength
193 assert.strictEqual(crypto.createHash('shake256', { outputLength: 0 }) property
200 assert.strictEqual(crypto.createHash('shake128', { outputLength: 0 }) property
203 assert.strictEqual(crypto.createHash('shake128', { outputLength: 5 }) property
204 .copy({ outputLength: 0 }) property
207 assert.strictEqual(crypto.createHash('shake128', { outputLength: 5 }) property
210 assert.strictEqual(crypto.createHash('shake128', { outputLength: 0 }) property
211 .copy({ outputLength: 5 }) property
214 assert.strictEqual(crypto.createHash('shake128', { outputLength: 15 }) property
217 assert.strictEqual(crypto.createHash('shake256', { outputLength: 16 }) property
222 assert.strictEqual(crypto.createHash('shake128', { outputLength: 128 }) property
233 outputLength: 1024 * 1024 property
241 assert.strictEqual(crypto.createHash('sha224', { outputLength: 28 }) property
248 crypto.createHash('sha256', { outputLength: 28 }); property
253 for (const outputLength of [null, {}, 'foo', false]) {
254 assert.throws(() => crypto.createHash('sha256', { outputLength }), field
258 for (const outputLength of [-1, .5, Infinity, 2 ** 90]) {
259 assert.throws(() => crypto.createHash('sha256', { outputLength }), field