diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-05-12 00:26:06 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-05-18 09:18:47 +0200 |
commit | cae5f2a543b31552ccd9765aca5eb514fa694e07 (patch) | |
tree | c9d76324302dff75f9f89605ee5e62d431d89707 /xmlsecurity/util | |
parent | 4c05834a363535804d2cf5892704e19a5bb4f966 (diff) |
gpg4libre: initial GPG signature generation
* 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
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'xmlsecurity/util')
-rw-r--r-- | xmlsecurity/util/xsec_gpg.component | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/xmlsecurity/util/xsec_gpg.component b/xmlsecurity/util/xsec_gpg.component new file mode 100644 index 000000000000..9a8f30ecfd10 --- /dev/null +++ b/xmlsecurity/util/xsec_gpg.component @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + --> + +<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" + prefix="xsec_gpg" xmlns="http://openoffice.org/2010/uno-components"> + <implementation name="com.sun.star.xml.security.bridge.xmlsec.XMLSignature_GpgImpl"> + <service name="com.sun.star.xml.crypto.XMLSignature"/> + </implementation> +</component> |