(ret)
| 405 | } |
| 406 | |
| 407 | function handleGenerateKeyError(ret) { |
| 408 | if (ret === undefined) |
| 409 | return; // async |
| 410 | |
| 411 | const { 0: err, 1: key } = ret; |
| 412 | if (err !== undefined) |
| 413 | throw err; |
| 414 | |
| 415 | return wrapKey(key, SecretKeyObject); |
| 416 | } |
| 417 | |
| 418 | function generateKey(type, options, callback) { |
| 419 | if (typeof options === 'function') { |
no test coverage detected
searching dependent graphs…