File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import Operation from "../Operation.mjs" ;
8
8
import OperationError from "../errors/OperationError.mjs" ;
9
- import { blake3 } from ' hash-wasm' ;
9
+ import { blake3 } from " hash-wasm" ;
10
10
/**
11
11
* BLAKE3 operation
12
12
*/
@@ -21,7 +21,7 @@ class BLAKE3 extends Operation {
21
21
this . name = "BLAKE3" ;
22
22
this . module = "Hashing" ;
23
23
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" ;
25
25
this . inputType = "string" ;
26
26
this . outputType = "string" ;
27
27
this . args = [
@@ -32,7 +32,7 @@ class BLAKE3 extends Operation {
32
32
"name" : "Key" ,
33
33
"type" : "string" ,
34
34
"value" : ""
35
- } ,
35
+ }
36
36
] ;
37
37
}
38
38
@@ -47,7 +47,7 @@ class BLAKE3 extends Operation {
47
47
// Check if the user want a key hash or not
48
48
if ( key === "" ) {
49
49
return blake3 ( input , size * 8 ) ;
50
- } if ( key . length !== 32 ) {
50
+ } if ( key . length !== 32 ) {
51
51
throw new OperationError ( "The key must be exactly 32 bytes long" ) ;
52
52
}
53
53
return blake3 ( input , size * 8 , key ) ;
Original file line number Diff line number Diff line change @@ -52,4 +52,4 @@ TestRegister.addTests([
52
52
"args" : [ 8 , "ThiskeyisexactlythirtytwoByteslo" ] }
53
53
]
54
54
}
55
- ] ) ;
55
+ ] ) ;
You can’t perform that action at this time.
0 commit comments