(options)
| 94 | } |
| 95 | |
| 96 | function getDSASignatureEncoding(options) { |
| 97 | if (typeof options === 'object') { |
| 98 | const { dsaEncoding = 'der' } = options; |
| 99 | if (dsaEncoding === 'der') |
| 100 | return kSigEncDER; |
| 101 | else if (dsaEncoding === 'ieee-p1363') |
| 102 | return kSigEncP1363; |
| 103 | throw new ERR_INVALID_ARG_VALUE('options.dsaEncoding', dsaEncoding); |
| 104 | } |
| 105 | |
| 106 | return kSigEncDER; |
| 107 | } |
| 108 | |
| 109 | function getContext(options) { |
| 110 | if (options?.context === undefined) { |
no outgoing calls
no test coverage detected