MCPcopy Index your code
hub / github.com/nodejs/node / getDSASignatureEncoding

Function getDSASignatureEncoding

lib/internal/crypto/sig.js:96–107  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

94}
95
96function 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
109function getContext(options) {
110 if (options?.context === undefined) {

Callers 3

sig.jsFile · 0.85
signOneShotFunction · 0.85
verifyOneShotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected