gpg4libre: initial GPG signature generation

Desktop / LibreOffice - Thorsten Behrens [CIB.de] - 18 May 2017 03:18 EDT

- takes XML-Sec signature template
- calculates digest for all added reference streams
- produces signature value over canonicalized signature template
- writes same as detached signature into template, streams that out

Change-Id: I303e080dc25c440175fe1ae897f03cf356d5d0f2 Reviewed-on: https://gerrit.libreoffice.org/36106

cae5f2a gpg4libre: initial GPG signature generation
postprocess/Rdb_services.mk | 1 +
xmlsecurity/Library_xsec_gpg.mk | 30 +-
.../{source => inc}/xmlsec/errorcallback.hxx | 0
.../xmlsec/xmlelementwrapper_xmlsecimpl.hxx | 3 +-
xmlsecurity/{source => inc}/xmlsec/xmlstreamio.hxx | 0
xmlsecurity/source/gpg/GpgComponentFactory.cxx | 50 +++
xmlsecurity/source/gpg/XMLSignature.cxx | 43 ---
xmlsecurity/source/gpg/XMLSignature.hxx | 44 ---
xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx | 371 +++++++++++++++++++++
xmlsecurity/source/gpg/xmlsignature_gpgimpl.hxx | 83 +++++
xmlsecurity/source/xmlsec/errorcallback.cxx | 6 +-
.../source/xmlsec/nss/xmlencryption_nssimpl.cxx | 5 +-
.../xmlsec/nss/xmlsecuritycontext_nssimpl.cxx | 2 +-
.../source/xmlsec/nss/xmlsignature_nssimpl.cxx | 7 +-
.../source/xmlsec/nss/xmlsignature_nssimpl.hxx | 4 +-
.../xmlsec/xmldocumentwrapper_xmlsecimpl.cxx | 2 +-
.../source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx | 2 +-
xmlsecurity/source/xmlsec/xmlstreamio.cxx | 6 +-
xmlsecurity/source/xmlsec/xsec_xmlsec.cxx | 2 +-
xmlsecurity/util/xsec_gpg.component | 25 ++
20 files changed, 577 insertions(+), 109 deletions(-)

Upstream: cgit.freedesktop.org


  • Share