MCPcopy Index your code
hub / github.com/nodejs/node / validateCShakeOutputLength

Function validateCShakeOutputLength

lib/internal/crypto/webidl.js:266–272  ·  view source on GitHub ↗
(V)

Source from the content-addressed store, hash-verified

264}
265
266function validateCShakeOutputLength(V) {
267 if (!isUint32(numBitsToBytes(V) * 8)) {
268 throw lazyDOMException(
269 'Invalid CShakeParams outputLength',
270 'OperationError');
271 }
272}
273
274function bufferSourceEqualsAscii(V, string) {
275 if (V.byteLength !== string.length) return false;

Callers

nothing calls this directly

Calls 3

numBitsToBytesFunction · 0.85
lazyDOMExceptionFunction · 0.85
isUint32Function · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…