1.1.1-1.5.3 #17

Merged
Royce59 merged 7 commits from dev into main 2026-03-20 16:49:30 +00:00
Showing only changes of commit f91392e6aa - Show all commits

View File

@@ -7,7 +7,6 @@ type KeyInput = Buffer | Uint8Array;
async function importAesCtrKey(input: KeyInput): Promise<CryptoKey> {
console.info("Importing AES-CTR key for E2EE:", Buffer.from(input).toString('hex'));
const keyBytes = toArrayBuffer(input);
if (keyBytes.byteLength !== 32) {
throw new Error(`E2EE key must be 32 bytes, got ${keyBytes.byteLength}`);