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

Function validateHmacKeyLength

lib/internal/crypto/webidl.js:340–345  ·  view source on GitHub ↗
(parameterName, zeroError)

Source from the content-addressed store, hash-verified

338 ]);
339
340function validateHmacKeyLength(parameterName, zeroError) {
341 return (V) => {
342 if (V === 0)
343 throw lazyDOMException(`${parameterName} cannot be 0`, zeroError);
344 };
345}
346
347for (const { 0: name, 1: zeroError } of [['HmacKeyGenParams', 'OperationError'], ['HmacImportParams', 'DataError']]) {
348 converters[name] = createDictionaryConverter(

Callers 1

webidl.jsFile · 0.85

Calls 1

lazyDOMExceptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…