fix(player):fileKey correct length check
This commit is contained in:
parent
b0221e0422
commit
998cf4a37c
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ function truncPadding(padded: Uint8Array): Uint8Array {
|
|||
}
|
||||
|
||||
export function decryptSessionBytes(cypher: Uint8Array, keyString: string): Promise<Uint8Array> {
|
||||
if (keyString.length !== 16) {
|
||||
if (keyString.length !== 64) {
|
||||
return Promise.reject("Wrong key string format")
|
||||
}
|
||||
const [hexKey, hexIV] = keyString.match(/.{8}/g)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue