Skip to content

Commit

Permalink
Updated description
Browse files Browse the repository at this point in the history
  • Loading branch information
h345983745 committed Mar 31, 2019
1 parent 3950dba commit bb8c305
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/core/operations/BLAKE2b.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<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.inputType = "string";
this.outputType = "string";
Expand Down Expand Up @@ -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":
Expand Down
6 changes: 4 additions & 2 deletions src/core/operations/BLAKE2s.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<br><br> 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.
<br><br> Supports the use of an optional key.`;
this.infoURL = "https://wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2";
this.inputType = "string";
this.outputType = "string";
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit bb8c305

Please sign in to comment.