You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/schemes/pss.js
+6-13Lines changed: 6 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ module.exports.makeScheme = function (key, options) {
18
18
19
19
/**
20
20
* @param key
21
+
* @param options
21
22
* options [Object] An object that contains the following keys that specify certain options for encoding.
22
23
* └>signingSchemeOptions
23
24
* ├>hash [String] Hash function to use when encoding and generating masks. Must be a string accepted by node's crypto.createHash function. (default = "sha1")
@@ -35,8 +36,7 @@ module.exports.makeScheme = function (key, options) {
* emBits [uint] Maximum length of output in bits. Must be at least 8hLen + 8sLen + 9 (hLen = Hash digest length in bytes | sLen = length of salt in bytes)
62
62
* @returns {Buffer} The encoded message
63
63
*/
@@ -118,7 +118,7 @@ module.exports.makeScheme = function (key, options) {
* emBits [uint] Length of EM in bits. Must be at least 8hLen + 8sLen + 9 to be a valid signature. (hLen = Hash digest length in bytes | sLen = length of salt in bytes)
124
124
* @returns {Boolean} True if signature(EM) matches message(M)
@@ -155,15 +155,8 @@ module.exports.makeScheme = function (key, options) {
0 commit comments