(key, inEnc, outEnc)
| 168 | dhComputeSecret; |
| 169 | |
| 170 | function dhComputeSecret(key, inEnc, outEnc) { |
| 171 | key = getArrayBufferOrView(key, 'key', inEnc); |
| 172 | const ret = this[kHandle].computeSecret(key); |
| 173 | if (typeof ret === 'string') |
| 174 | throw new ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY(); |
| 175 | return encode(ret, outEnc); |
| 176 | } |
| 177 | |
| 178 | |
| 179 | DiffieHellmanGroup.prototype.getPrime = |
nothing calls this directly
no test coverage detected
searching dependent graphs…