From 6f59d9217c745e2fa67f63112fd2618d326fdd7d Mon Sep 17 00:00:00 2001 From: n1474335 Date: Sat, 6 Jan 2018 17:01:01 +0000 Subject: [PATCH] Changed 'Number' option to 'Integer' in PRNG op --- src/core/operations/Cipher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/operations/Cipher.js b/src/core/operations/Cipher.js index 8072f6b3..c253cfbe 100755 --- a/src/core/operations/Cipher.js +++ b/src/core/operations/Cipher.js @@ -521,7 +521,7 @@ DES uses a key length of 8 bytes (64 bits).`; * @default */ PRNG_BYTES: 32, - PRNG_OUTPUT: ["Hex", "Number", "Byte array", "Raw"], + PRNG_OUTPUT: ["Hex", "Integer", "Byte array", "Raw"], /** * Pseudo-Random Number Generator operation. @@ -549,7 +549,7 @@ DES uses a key length of 8 bytes (64 bits).`; switch (outputAs) { case "Hex": return forge.util.bytesToHex(bytes); - case "Number": + case "Integer": for (i = bytes.length - 1; i >= 0; i--) { value = value.mul(256).plus(bytes.charCodeAt(i)); }