|
@@ -23,7 +23,9 @@ class BLAKE2b extends Operation {
|
|
|
|
|
|
this.name = "BLAKE2b";
|
|
this.name = "BLAKE2b";
|
|
this.module = "Hashing";
|
|
this.module = "Hashing";
|
|
- this.description = "Performs BLAKE2b hashing on the input. Returns the output HEX encoded.";
|
|
|
|
|
|
+ this.description = `Performs BLAKE2b hashing on the input.
|
|
|
|
+ <br><br> 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.
|
|
|
|
+ <br><br> Supports the use of an optional key.`;
|
|
this.infoURL = "https://wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2b_algorithm";
|
|
this.infoURL = "https://wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2b_algorithm";
|
|
this.inputType = "string";
|
|
this.inputType = "string";
|
|
this.outputType = "string";
|
|
this.outputType = "string";
|
|
@@ -56,7 +58,7 @@ class BLAKE2b extends Operation {
|
|
if (key.length === 0){
|
|
if (key.length === 0){
|
|
key = null;
|
|
key = null;
|
|
} else if (key.length > 64){
|
|
} 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) {
|
|
switch (outFormat) {
|
|
case "Hex":
|
|
case "Hex":
|