index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-07-04 15:56:47 +0800
committerPeter Cai <[email protected]>2020-07-04 15:56:47 +0800
commitba6680a3e180bd1b7fcabb531310c515b195463d (patch)
treeda47875d37ba8171a2f7ae3463f6fc0eaf3de961
parentab1272e9370676956cc49b2ba51703f8aa17fa2a (diff)
downloadmatrix-js-sdk-ba6680a3e180bd1b7fcabb531310c515b195463d.tar.gz
Revert "crypto: wrap zerosalt in Buffer"
This reverts commit 4ac4b34979a02e8ba8704658d285e6752b411e59.
-rw-r--r--src/crypto/aes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/aes.js b/src/crypto/aes.js
index 7e8c5a2f..1556413f 100644
--- a/src/crypto/aes.js
+++ b/src/crypto/aes.js
@@ -99,7 +99,7 @@ async function decryptNode(data, key, name) {
function deriveKeysNode(key, name) {
const crypto = getCrypto();
- const prk = crypto.createHmac("sha256", Buffer.from(zerosalt))
+ const prk = crypto.createHmac("sha256", zerosalt)
.update(key).digest();
const b = Buffer.alloc(1, 1);