office-gobmx/include/vcl/filter
Miklos Vajna eabda77c97 cool#9992 lok doc sign, hash extract: digest for getCommandValues('Signature')
To be able to sign externally, we need a way to know what is the
document hash that would be passed to
NSS_CMSSignedData_SetDigestValue(), without actually performing the
signing.

Note that svl::crypto::SigningContext already gives us a way to expose
the time that would be used for signing.

Expose the hash in a similar way: the format is a SHA-256 hash in base64
form.

This adapts both places dealing with time: vcl::PDFWriter::GetDateTime()
and svl::crypto::Signing::Sign, to make sure they use the same time,
otherwise the hash would potentially depend on two times, which would be
hard to reproduce later when we serialize the signature we get.

Change-Id: Ib039db4cdd043c8117215c31cb5bc83397693820
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176470
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-11-12 12:41:34 +01:00
..
pdfdocument.hxx cool#9992 lok doc sign, hash extract: digest for getCommandValues('Signature') 2024-11-12 12:41:34 +01:00
PDFiumLibrary.hxx
pdfobjectcontainer.hxx
PngImageReader.hxx
PngImageWriter.hxx
SvmReader.hxx
SvmWriter.hxx