File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 66
77import Operation from "../Operation.mjs" ;
88import OperationError from "../errors/OperationError.mjs" ;
9- import { blake3 } from ' hash-wasm' ;
9+ import { blake3 } from " hash-wasm" ;
1010/**
1111 * BLAKE3 operation
1212 */
@@ -21,7 +21,7 @@ class BLAKE3 extends Operation {
2121 this . name = "BLAKE3" ;
2222 this . module = "Hashing" ;
2323 this . description = "Hashes the input using BLAKE3 (UTF-8 encoded), with an optional key (also UTF-8), and outputs the result in hexadecimal format." ;
24- this . infoURL = "https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE3" ;
24+ this . infoURL = "https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE3" ;
2525 this . inputType = "string" ;
2626 this . outputType = "string" ;
2727 this . args = [
@@ -32,7 +32,7 @@ class BLAKE3 extends Operation {
3232 "name" : "Key" ,
3333 "type" : "string" ,
3434 "value" : ""
35- } ,
35+ }
3636 ] ;
3737 }
3838
@@ -47,7 +47,7 @@ class BLAKE3 extends Operation {
4747 // Check if the user want a key hash or not
4848 if ( key === "" ) {
4949 return blake3 ( input , size * 8 ) ;
50- } if ( key . length !== 32 ) {
50+ } if ( key . length !== 32 ) {
5151 throw new OperationError ( "The key must be exactly 32 bytes long" ) ;
5252 }
5353 return blake3 ( input , size * 8 , key ) ;
Original file line number Diff line number Diff line change @@ -52,4 +52,4 @@ TestRegister.addTests([
5252 "args" : [ 8 , "ThiskeyisexactlythirtytwoByteslo" ] }
5353 ]
5454 }
55- ] ) ;
55+ ] ) ;
You can’t perform that action at this time.
0 commit comments