mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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:
commit
5e505d9ee3
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user