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 tdf#95239 sw: fix wrong order of PDF ToC, if headings put in text frames 2024-11-06 17:46:59 +01:00
pdfobjectcontainer.hxx
PngImageReader.hxx tdf#146619 Recheck include/[v-x]* with IWYU 2023-12-12 18:51:27 +01:00
PngImageWriter.hxx Initial APNG export support 2023-08-11 08:51:16 +02:00
SvmReader.hxx reduce symbol visibility in vcl 2024-03-14 19:17:08 +01:00
SvmWriter.hxx reduce symbol visibility in vcl 2024-03-14 19:17:08 +01:00