Skip to content

Commit f85e838

Browse files
committed
fixup! crypto: add optional callback to crypto.sign and crypto.verify
1 parent 0f68e17 commit f85e838

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/internal/crypto/sig.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ function signOneShot(algorithm, data, key, callback) {
184184
}
185185

186186
// TODO: add dsaSigEnc to SignJob
187-
// TODO: recognize pssSaltLength constants RSA_PSS_SALTLEN_DIGEST,
188-
// RSA_PSS_SALTLEN_MAX_SIGN, and RSA_PSS_SALTLEN_AUTO
187+
// TODO: recognize pssSaltLength RSA_PSS_SALTLEN_* constants in SignJob
189188
const job = new SignJob(
190189
kCryptoJobAsync,
191190
kSignJobModeSign,
@@ -297,8 +296,7 @@ function verifyOneShot(algorithm, data, key, signature, callback) {
297296
}
298297

299298
// TODO: add dsaSigEnc to SignJob
300-
// TODO: recognize pssSaltLength constants RSA_PSS_SALTLEN_DIGEST,
301-
// RSA_PSS_SALTLEN_MAX_SIGN, and RSA_PSS_SALTLEN_AUTO
299+
// TODO: recognize pssSaltLength RSA_PSS_SALTLEN_* constants in SignJob
302300
const job = new SignJob(
303301
kCryptoJobAsync,
304302
kSignJobModeVerify,

0 commit comments

Comments
 (0)