Re: xml signing binary files

Miklos Vajna <[email protected]> Sun, 28 Apr 2019 21:58:18 +0200
Newsgroups gmane.text.xml.xmlsec
Message-ID <[email protected]>
--===============0757794508==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ZoaI/ZTpAVc4A5k6"
Content-Disposition: inline


--ZoaI/ZTpAVc4A5k6
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

Did you try to remove all this:

        <Transforms>
          <Transform Algorithm=3D"http://www.w3.org/2000/09/xmldsig#envelop=
ed-signature" />
        </Transforms>

=66rom sign1-tmpl.xml and just set the URI of the Reference to your binary
file? That works for me for a random PNG input I tried.

Regards,

Miklos

--ZoaI/ZTpAVc4A5k6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQSK0+WTigfbXWePMdJ7zW0CA5FQlgUCXMYF2QAKCRB7zW0CA5FQ
lpXyAKCiov0SX7ugAVbIT1bGVMClDRqgEgCfRLDBb2RwUxa2VVx+dVOT8lNx6cY=
=3iAP
-----END PGP SIGNATURE-----

--ZoaI/ZTpAVc4A5k6--

--===============0757794508==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KeG1sc2VjIG1h
aWxpbmcgbGlzdAp4bWxzZWNAYWxla3NleS5jb20KaHR0cDovL3d3dy5hbGVrc2V5LmNvbS9tYWls
bWFuL2xpc3RpbmZvL3htbHNlYwo=

--===============0757794508==--