diff --git a/src/core/Utils.js b/src/core/Utils.js index 947375cb..3c3622fb 100755 --- a/src/core/Utils.js +++ b/src/core/Utils.js @@ -283,18 +283,18 @@ const Utils = { /** * Coverts data of varying types to a byteArray. * Accepts hex, Base64, UTF8 and Latin1 strings. - * + * * @param {string} str * @param {string} type - One of "Hex", "Base64", "UTF8" or "Latin1" * @returns {byteArray} - * + * * @example * // returns [208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130] * Utils.convertToByteArray("Привет", "utf8"); - * + * * // returns [208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130] * Utils.convertToByteArray("d097d0b4d180d0b0d0b2d181d182d0b2d183d0b9d182d0b5", "hex"); - * + * * // returns [208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130] * Utils.convertToByteArray("0JfQtNGA0LDQstGB0YLQstGD0LnRgtC1", "base64"); */ @@ -316,18 +316,18 @@ const Utils = { /** * Coverts data of varying types to a byte string. * Accepts hex, Base64, UTF8 and Latin1 strings. - * + * * @param {string} str * @param {string} type - One of "Hex", "Base64", "UTF8" or "Latin1" * @returns {string} - * + * * @example * // returns [208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130] * Utils.convertToByteArray("Привет", "utf8"); - * + * * // returns [208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130] * Utils.convertToByteArray("d097d0b4d180d0b0d0b2d181d182d0b2d183d0b9d182d0b5", "hex"); - * + * * // returns [208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130] * Utils.convertToByteArray("0JfQtNGA0LDQstGB0YLQstGD0LnRgtC1", "base64"); */ @@ -493,10 +493,10 @@ const Utils = { /** * Converts an ArrayBuffer to a string. - * + * * @param {ArrayBuffer} arrayBuffer * @returns {string} - * + * * @example * // returns "hello" * Utils.arrayBufferToStr(Uint8Array.from([104,101,108,108,111]).buffer); diff --git a/src/core/operations/Cipher.js b/src/core/operations/Cipher.js index 8799f058..51fa8f62 100755 --- a/src/core/operations/Cipher.js +++ b/src/core/operations/Cipher.js @@ -332,7 +332,7 @@ DES uses a key length of 8 bytes (64 bits).`; /** * Lookup table for Blowfish output types. - * + * * @private */ _BLOWFISH_OUTPUT_TYPE_LOOKUP: { @@ -340,7 +340,7 @@ DES uses a key length of 8 bytes (64 bits).`; }, /** * Lookup table for Blowfish modes. - * + * * @private */ _BLOWFISH_MODE_LOOKUP: { @@ -524,7 +524,7 @@ DES uses a key length of 8 bytes (64 bits).`; /** * Pseudo-Random Number Generator operation. - * + * * @param {string} input * @param {Object[]} args * @returns {string} @@ -944,7 +944,7 @@ DES uses a key length of 8 bytes (64 bits).`; /** * A mapping of string formats to their classes in the CryptoJS library. - * + * * @private * @constant */ diff --git a/src/web/LoaderWorker.js b/src/web/LoaderWorker.js index b841c096..2da381ed 100644 --- a/src/web/LoaderWorker.js +++ b/src/web/LoaderWorker.js @@ -20,7 +20,7 @@ self.addEventListener("message", function(e) { /** * Loads a file object into an ArrayBuffer, then transfers it back to the parent thread. - * + * * @param {File} file */ self.loadFile = function(file) { diff --git a/src/web/OptionsWaiter.js b/src/web/OptionsWaiter.js index 2ccab4e9..a3832dc4 100755 --- a/src/web/OptionsWaiter.js +++ b/src/web/OptionsWaiter.js @@ -154,7 +154,7 @@ OptionsWaiter.prototype.setWordWrap = function() { /** * Changes the theme by setting the class of the element. - * + * * @param {Event} e */ OptionsWaiter.prototype.themeChange = function (e) { @@ -166,7 +166,7 @@ OptionsWaiter.prototype.themeChange = function (e) { /** * Changes the console logging level. - * + * * @param {Event} e */ OptionsWaiter.prototype.logLevelChange = function (e) { diff --git a/src/web/OutputWaiter.js b/src/web/OutputWaiter.js index 6012975e..e78b34b2 100755 --- a/src/web/OutputWaiter.js +++ b/src/web/OutputWaiter.js @@ -170,7 +170,7 @@ OutputWaiter.prototype.displayFileSlice = function() { /** * Handler for show file overlay events. - * + * * @param {Event} e */ OutputWaiter.prototype.showFileOverlayClick = function(e) { diff --git a/test/tests/operations/Cipher.js b/test/tests/operations/Cipher.js index f56c9d4b..6b21debc 100644 --- a/test/tests/operations/Cipher.js +++ b/test/tests/operations/Cipher.js @@ -79,13 +79,13 @@ TestRegister.addTests([ /** * Ciphers - * + * * The following expectedOutputs were generated using the following command format: * > openssl enc -aes-128-cbc -in test.txt -out test.enc -K "00112233445566778899aabbccddeeff" -iv "00112233445566778899aabbccddeeff" * > xxd -p test.enc | tr -d '\n' | xclip -selection clipboard - * + * * All random data blocks (binary input, keys and IVs) were generated from /dev/urandom using dd: - * > dd if=/dev/urandom of=key.txt bs=16 count=1 + * > dd if=/dev/urandom of=key.txt bs=16 count=1 */ { name: "AES Encrypt: no key",