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

Function getUIntOption

lib/internal/crypto/cipher.js:106–115  ·  view source on GitHub ↗
(options, key)

Source from the content-addressed store, hash-verified

104}
105
106function getUIntOption(options, key) {
107 let value;
108 if (options && (value = options[key]) != null) {
109 if (value >>> 0 !== value)
110 throw new ERR_INVALID_ARG_VALUE(`options.${key}`, value);
111 // Coerce -0 to +0.
112 return value + 0;
113 }
114 return -1;
115}
116
117function createCipherBase(cipher, credential, options, isEncrypt, iv) {
118 const authTagLength = getUIntOption(options, 'authTagLength');

Callers 2

createCipherBaseFunction · 0.85
setAADFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…