From bb8c305fc85ac81520f28f7c9b40d0b67cbb7a9e Mon Sep 17 00:00:00 2001 From: h345983745 Date: Sun, 31 Mar 2019 18:46:29 +0100 Subject: [PATCH] Updated description --- src/core/operations/BLAKE2b.mjs | 6 ++++-- src/core/operations/BLAKE2s.mjs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/core/operations/BLAKE2b.mjs b/src/core/operations/BLAKE2b.mjs index 62709a93f..39e9b5fd0 100644 --- a/src/core/operations/BLAKE2b.mjs +++ b/src/core/operations/BLAKE2b.mjs @@ -23,7 +23,9 @@ class BLAKE2b extends Operation { this.name = "BLAKE2b"; this.module = "Hashing"; - this.description = "Performs BLAKE2b hashing on the input. Returns the output HEX encoded."; + this.description = `Performs BLAKE2b hashing on the input. +

BLAKE2b is a flavour of the BLAKE cryptographic hash function that is optimized for 64-bit platforms and produces digests of any size between 1 and 64 bytes. +

Supports the use of an optional key.`; this.infoURL = "https://wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2b_algorithm"; this.inputType = "string"; this.outputType = "string"; @@ -56,7 +58,7 @@ class BLAKE2b extends Operation { if (key.length === 0){ key = null; } else if (key.length > 64){ - throw new OperationError(["Key cannot be greater than 64 bytes", "It is currently " + key.length +" bytes."].join("\n")); + throw new OperationError(["Key cannot be greater than 64 bytes", "It is currently " + key.length + " bytes."].join("\n")); } switch (outFormat) { case "Hex": diff --git a/src/core/operations/BLAKE2s.mjs b/src/core/operations/BLAKE2s.mjs index 0ded5eac0..7ddb9d2b1 100644 --- a/src/core/operations/BLAKE2s.mjs +++ b/src/core/operations/BLAKE2s.mjs @@ -22,7 +22,9 @@ class BLAKE2s extends Operation { this.name = "BLAKE2s"; this.module = "Hashing"; - this.description = "Performs BLAKE2s hashing on the input. Returns the output HEX encoded."; + this.description = `Performs BLAKE2s hashing on the input. +

BLAKE2s is a flavour of the BLAKE cryptographic hash function that is optimized for 8 to 32-bit platforms and produces digests of any size between 1 and 32 bytes. +

Supports the use of an optional key.`; this.infoURL = "https://wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2"; this.inputType = "string"; this.outputType = "string"; @@ -56,7 +58,7 @@ class BLAKE2s extends Operation { if (key.length === 0){ key = null; } else if (key.length > 32){ - throw new OperationError(["Key cannot be greater than 32 bytes", "It is currently " + key.length +" bytes."].join("\n")); + throw new OperationError(["Key cannot be greater than 32 bytes", "It is currently " + key.length + " bytes."].join("\n")); } switch (outFormat) { case "Hex":