Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piloking committed Oct 23, 2024
1 parent 4a82df4 commit 81f1a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/linejs/client/clients/e2ee/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class E2EE extends TalkClient {
const { keyId, keyData } = key;
keyIds.push(keyId);

const aesKey = this.generateSharedSecret(selfKey, keyData);
const aesKey = this.generateSharedSecret(selfKey, Buffer.from(keyData));
const aes_key = this.getSHA256Sum(Buffer.from(aesKey), "Key");
const aes_iv = this.xor(this.getSHA256Sum(Buffer.from(aesKey), "IV"));
const cipher = crypto.createCipheriv("aes-256-cbc", aes_key, aes_iv);
Expand Down

0 comments on commit 81f1a02

Please sign in to comment.