Skip to content

Commit

Permalink
Merge pull request #5534 from nextcloud/feature/e2ee-deryption-cut-ex…
Browse files Browse the repository at this point in the history
…tra-zeroes

E2EE cut extra zeroes from derypted byte array.
  • Loading branch information
allexzander authored Mar 20, 2023
2 parents 29b0f02 + 09f316d commit 5e505d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libsync/clientsideencryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5e505d9

Please sign in to comment.