Remove key.key.bytelength check in encryptUint8array (#14432)

This commit is contained in:
Bernd Schoolmann 2025-04-25 17:48:32 +02:00 committed by GitHub
parent 4943e70965
commit e4ba98f2d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ export class EncryptServiceImplementation implements EncryptService {
}
if (this.blockType0) {
if (key.inner().type === EncryptionType.AesCbc256_B64 || key.key.byteLength < 64) {
if (key.inner().type === EncryptionType.AesCbc256_B64) {
throw new Error("Type 0 encryption is not supported.");
}
}