[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - wsd/ProofKey.cpp
Damian (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 23 11:02:16 UTC 2020
wsd/ProofKey.cpp | 1 +
1 file changed, 1 insertion(+)
New commits:
commit efba60720248fcd53c55ecb56a14f18481ab5203
Author: Damian <damian.walkowski at primesoft.pl>
AuthorDate: Mon Jun 22 21:06:34 2020 +0300
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Tue Jun 23 13:01:57 2020 +0200
tdf#134041: reset engine before next digest computation
Change-Id: I68ef078f6f885bebaf29b37d5fd704a9c70c826a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96899
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
(cherry picked from commit f160ccf80d46fda857a7cd4d87c036f61ef9df74)
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96876
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/wsd/ProofKey.cpp b/wsd/ProofKey.cpp
index f3bff7599..3bfaf1423 100644
--- a/wsd/ProofKey.cpp
+++ b/wsd/ProofKey.cpp
@@ -243,6 +243,7 @@ std::string Proof::SignProof(const std::vector<unsigned char>& proof) const
{
assert(m_pKey);
static Poco::Crypto::RSADigestEngine digestEngine(*m_pKey, "SHA256");
+ digestEngine.reset();
digestEngine.update(proof.data(), proof.size());
return BytesToBase64(digestEngine.signature());
}
More information about the Libreoffice-commits
mailing list