(hmac, key, options)
| 170 | }; |
| 171 | |
| 172 | function Hmac(hmac, key, options) { |
| 173 | if (!(this instanceof Hmac)) |
| 174 | return new Hmac(hmac, key, options); |
| 175 | validateString(hmac, 'hmac'); |
| 176 | const encoding = getStringOption(options, 'encoding'); |
| 177 | key = prepareSecretKey(key, encoding); |
| 178 | this[kHandle] = new _Hmac(); |
| 179 | this[kHandle].init(hmac, key); |
| 180 | this[kState] = { |
| 181 | [kFinalized]: false, |
| 182 | }; |
| 183 | FunctionPrototypeCall(LazyTransform, this, options); |
| 184 | } |
| 185 | |
| 186 | ObjectSetPrototypeOf(Hmac.prototype, LazyTransform.prototype); |
| 187 | ObjectSetPrototypeOf(Hmac, LazyTransform); |
nothing calls this directly
no test coverage detected
searching dependent graphs…