Skip to content

Commit

Permalink
fix(lite) change dataType of iv
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPaulHarold authored Dec 20, 2024
1 parent 2c654eb commit c2fa409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypt/decrypter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class Decrypter {
return Promise.reject(new Error('web crypto not initialized'));
}

const crypto = new AESCrypto(subtle, iv);
const crypto = new AESCrypto(subtle, new Uint8Array(iv));
return crypto.decrypt(data.buffer, aesKey);
})
.catch((err) => {
Expand Down

0 comments on commit c2fa409

Please sign in to comment.