How to Implement Relationships Transformation Algorithm to support XPS Digital Signature

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am working on XPS File Format by using C programming language and it is working properly.<br/>
Now Digital Signature feature to be supported for XPS file format. I implemented most of digital signature functions(SHA1, RSA, Canonicalization etc) but I got struck in Relationship transformation, as shown below(only bold lines) in sample code.
<Reference URI="/Documents/1/Pages/_rels/1.fpage.rels?ContentType=application/vnd.openxmlformats-package.relationships+xml <br/>
<Transforms><br/>
<Transform Algorithm=" http://schemas.openxmlformats.org/package/2006/RelationshipTransform http://schemas.openxmlformats.org/package/2006/RelationshipTransform <br/>
<opc:RelationshipsGroupReference SourceType=" http://schemas.microsoft.com/xps/2005/06/required-resource http://schemas.microsoft.com/xps/2005/06/required-resource "
/> <br/>
<opc:RelationshipsGroupReference SourceType=" http://schemas.microsoft.com/xps/2005/06/storyfragments http://schemas.microsoft.com/xps/2005/06/storyfragments "
/> <br/>
<opc:RelationshipsGroupReference SourceType=" http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail "
/> <br/>
</Transform> <br/>
<Transform Algorithm=" http://www.w3.org/TR/2001/REC-xml-c14n-20010315 http://www.w3.org/TR/2001/REC-xml-c14n-20010315 " /><br/>
</Transforms><br/>
<DigestMethod Algorithm=" http://www.w3.org/2000/09/xmldsig#sha1 http://www.w3.org/2000/09/xmldsig#sha1 " /><br/>
<DigestValue>heBybMDWsRYU6TH7+IBS8DYO7lU=</DigestValue><br/>
</Reference>
I would like to know how to implement relationship transform in C/C++.
If you know anything about relationship transformation please inform me and it would be great help for me.
I am very thankful for your kind suggestion

View the full article
 
Back
Top