(options, key)
| 104 | } |
| 105 | |
| 106 | function 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 | |
| 117 | function createCipherBase(cipher, credential, options, isEncrypt, iv) { |
| 118 | const authTagLength = getUIntOption(options, 'authTagLength'); |
no outgoing calls
no test coverage detected
searching dependent graphs…