fix : delete space and add new line
This commit is contained in:
parent
ad91099d5e
commit
26d8fa51b0
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
import Operation from "../Operation.mjs";
|
import Operation from "../Operation.mjs";
|
||||||
import OperationError from "../errors/OperationError.mjs";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
import { blake3 } from 'hash-wasm';
|
import { blake3 } from "hash-wasm";
|
||||||
/**
|
/**
|
||||||
* BLAKE3 operation
|
* BLAKE3 operation
|
||||||
*/
|
*/
|
||||||
@ -32,7 +32,7 @@ class BLAKE3 extends Operation {
|
|||||||
"name": "Key",
|
"name": "Key",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ class BLAKE3 extends Operation {
|
|||||||
// Check if the user want a key hash or not
|
// Check if the user want a key hash or not
|
||||||
if (key === "") {
|
if (key === "") {
|
||||||
return blake3(input, size*8);
|
return blake3(input, size*8);
|
||||||
}if (key.length !== 32) {
|
} if (key.length !== 32) {
|
||||||
throw new OperationError("The key must be exactly 32 bytes long");
|
throw new OperationError("The key must be exactly 32 bytes long");
|
||||||
}
|
}
|
||||||
return blake3(input, size*8, key);
|
return blake3(input, size*8, key);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user