Merge pull request #5534 from nextcloud/feature/e2ee-deryption-cut-extra-zeroes

E2EE cut extra zeroes from derypted byte array.
This commit is contained in:
allexzander 2023-03-20 10:35:28 +01:00 committed by GitHub
commit 5e505d9ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -806,6 +806,9 @@ QByteArray decryptStringAsymmetric(EVP_PKEY *privateKey, const QByteArray& data)
qCInfo(lcCseDecryption()) << "data decrypted successfully";
}
// we don't need extra zeroes in out, so let's only return meaningful data
out = QByteArray(out.constData(), outlen);
qCInfo(lcCse()) << out;
return out;
}