From 998cf4a37c6ce02a0e10d6e7e94b2574d7602c02 Mon Sep 17 00:00:00 2001 From: Alex Kaminskii Date: Fri, 14 Oct 2022 11:41:13 +0200 Subject: [PATCH] fix(player):fileKey correct length check --- frontend/app/player/MessageDistributor/network/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/player/MessageDistributor/network/crypto.ts b/frontend/app/player/MessageDistributor/network/crypto.ts index c6150f6cc..ff50e9704 100644 --- a/frontend/app/player/MessageDistributor/network/crypto.ts +++ b/frontend/app/player/MessageDistributor/network/crypto.ts @@ -14,7 +14,7 @@ function truncPadding(padded: Uint8Array): Uint8Array { } export function decryptSessionBytes(cypher: Uint8Array, keyString: string): Promise { - if (keyString.length !== 16) { + if (keyString.length !== 64) { return Promise.reject("Wrong key string format") } const [hexKey, hexIV] = keyString.match(/.{8}/g)