Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XFDL digital signature

Reply
Thread Tools

XFDL digital signature

 
 
chambersdon@hotmail.com
Guest
Posts: n/a
 
      11-26-2008
I have an application that requires digital signatures and I need to
add the ability to export my data so that it can be read in version
6.5 of the PureEdge Viewer. The PureEdge document format is XFDL and
the only version of the spec I can find is from back in 1998 at:
http://www.w3.org/TR/NOTE-XFDL

My problem is with generating the mimedata for the digital signature
in XFDL. My understanding is that this is what I need to do (from
section 6.25 of the spec):
1. Create a plain text version of the portion of the form to be
signed.
2. Hash this plain text description.
3. Sign the hash with the signer’s private key.
4. Include the signed hash and the signer’s public key in the
mimedata option.
5. Base64 encode the mimedata.

My problem is with step 1. I’m not sure what I should be hashing.
Should I hash the entire XML (tags and all)? Or should it just be the
text value between the tags? Do I include the attributes? If I hash
the entire XML, how do I handle end of line characters?

I also have a problem with step 4. I’m not sure how to include both
the signed hash and the public key. Do I just concatenate them?

I’ve tried working backwards with an existing file and I can decode it
but I can’t figure out where the signed portion ends and the public
key begins. And even, if I figure this out and can decrypt the
signature with the public key it will only give me a hash, which I
can’t undo.

I can’t find very much documentation on this and I’ve been stuck on
these steps for almost a week. I would appreciate any input I can
get.

Thanks,
Don




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning a signature-changing decorator into a signature-preservingone Gustavo Narea Python 14 02-16-2009 04:58 PM
Re: a kind of digital signature for a record in a table .... Scott Allen ASP .Net 0 09-20-2005 08:17 PM
UTF-8 with signature & UTF-8 without signature JJBW ASP .Net 1 04-24-2004 10:21 AM
digital signature usage in asp.net caldera ASP .Net 0 04-22-2004 07:13 PM
Digital Signature No Cheques Cash only Computer Support 2 03-04-2004 10:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57