diff options
author | Vadim Ogievetsky <vadimon@gmail.com> | 2015-11-29 13:16:29 -0800 |
---|---|---|
committer | Vadim Ogievetsky <vadimon@gmail.com> | 2015-11-29 13:16:29 -0800 |
commit | d12dd48924a16f12fb80999f64243f8b3f89c60b (patch) | |
tree | 70e345e0295d52d226db35db3e367b08c6d35854 | |
parent | 03f898d654cc83f952a16e2372a89a3ebadae435 (diff) | |
download | jsSHA-d12dd48924a16f12fb80999f64243f8b3f89c60b.zip jsSHA-d12dd48924a16f12fb80999f64243f8b3f89c60b.tar.gz jsSHA-d12dd48924a16f12fb80999f64243f8b3f89c60b.tar.bz2 |
numRounds is a number
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/sha_dev.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -83,7 +83,7 @@ Example to calculate the SHA-512 of "This is a test": The constructor takes a hashmap as a optional third argument with possible properties of "numRounds" and "encoding". numRounds controls the number of -hashing iterations/rounds performed and defaults to a value of "1" if not +hashing iterations/rounds performed and defaults to a value of 1 if not specified. encoding specifies the encoding used to encode TEXT-type inputs. Valid options are "UTF8", "UTF16BE", and "UTF16LE", it defaults to "UTF8". diff --git a/src/sha_dev.js b/src/sha_dev.js index 8222d1b..e51d838 100644 --- a/src/sha_dev.js +++ b/src/sha_dev.js @@ -1390,7 +1390,7 @@ var SUPPORTED_ALGS = 4 | 2 | 1; * @param {string} variant The desired SHA variant (SHA-1, SHA-224, SHA-256, * SHA-384, or SHA-512) * @param {string} inputFormat The format of srcString: HEX, TEXT, B64, or BYTES - * @param {{encoding: (string|undefined), numRounds: (string|undefined)}=} + * @param {{encoding: (string|undefined), numRounds: (number|undefined)}=} * options Optional values */ var jsSHA = function(variant, inputFormat, options) |