From 481551e5fba68c6ae2641b86703353180fa86761 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Tue, 27 Oct 2020 23:08:26 +0100 Subject: Fix inconsistent indentation and trailing whitespace --- content_key_decryption.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'content_key_decryption.js') diff --git a/content_key_decryption.js b/content_key_decryption.js index d5c7542..9412cfb 100644 --- a/content_key_decryption.js +++ b/content_key_decryption.js @@ -166,21 +166,21 @@ function wordToByteArray(wordArray) // byte array to CryptoJS format function arrayToWordArray(u8Array) { - var words = [], i = 0, len = u8Array.length; - - while (i < len) { - words.push( - (u8Array[i++] << 24) | - (u8Array[i++] << 16) | - (u8Array[i++] << 8) | - (u8Array[i++]) - ); - } - - return { - sigBytes: len, - words: words - }; + var words = [], i = 0, len = u8Array.length; + + while (i < len) { + words.push( + (u8Array[i++] << 24) | + (u8Array[i++] << 16) | + (u8Array[i++] << 8) | + (u8Array[i++]) + ); + } + + return { + sigBytes: len, + words: words + }; } const toHexString = bytes => bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), ''); @@ -209,4 +209,4 @@ function PEM2Binary(pem) return bytes.buffer; } -}()); \ No newline at end of file +}()); -- cgit v1.2.3