diff options
author | Brian Turek <brian.turek@gmail.com> | 2017-02-19 07:41:24 +0000 |
---|---|---|
committer | Brian Turek <brian.turek@gmail.com> | 2017-02-19 07:41:50 +0000 |
commit | 1684591dc77e6e869026d41312a0d6e2fe27acad (patch) | |
tree | 210a89f5887b3263baf086fd6748b6804b416396 | |
parent | e1091675b2144dfb862613fab997b59856885d53 (diff) | |
download | jsSHA-1684591dc77e6e869026d41312a0d6e2fe27acad.zip jsSHA-1684591dc77e6e869026d41312a0d6e2fe27acad.tar.gz jsSHA-1684591dc77e6e869026d41312a0d6e2fe27acad.tar.bz2 |
Fixing docstrings for `update` and `setHMACKey` to include ArrayBuffer as an input type
-rw-r--r-- | src/sha_dev.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sha_dev.js b/src/sha_dev.js index 4c4e9d5..629b59c 100644 --- a/src/sha_dev.js +++ b/src/sha_dev.js @@ -1968,7 +1968,7 @@ var SUPPORTED_ALGS = 8 | 4 | 2 | 1; * immediately after jsSHA object instantiation * * @expose - * @param {string} key The key used to calculate the HMAC + * @param {string|ArrayBuffer} key The key used to calculate the HMAC * @param {string} inputFormat The format of key, HEX, TEXT, B64, BYTES, * or ARRAYBUFFER * @param {{encoding : (string|undefined)}=} options Associative array @@ -2053,7 +2053,7 @@ var SUPPORTED_ALGS = 8 | 4 | 2 | 1; * rest for either a future update or getHash call. * * @expose - * @param {string} srcString The string to be hashed + * @param {string|ArrayBuffer} srcString The string to be hashed */ this.update = function(srcString) { |