EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problem Canonization

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#11256
Posted: 10/07/2009 03:36:51
by David MICHEL (Standard support level)
Joined: 09/23/2009
Posts: 48

With this code, I have the impression that canonization does not occur well. Will I have forgotten a parameter?

Level server, one brings back to me an error of signature of with to the problem of canonization.

Code
  RefList := TElXMLReferenceList.Create;
  try//1
    Ref  := TElXMLReference.Create;
    try

      Ref.DigestMethod := xdmSHA256;
      Ref.URI := '#xpointer(//*[@authenticate=''true''])';  
      Ref.URINode := ExtractURINode('//*[@authenticate]','http://www.ebics.org/H003');

      C14N := TElXMLC14NTransform.Create;
      try
        C14N.CanonicalizationMethod := xcmCanon;
        Ref.TransformChain.Add(C14N);
      except
      end;

      Ref.UpdateDigestValue;
      RefList.Add(Ref);
    except
    end;

    Signer := TElXMLSigner.Create(Self);
    try//2
      Signer.SignatureType          := xstEnveloped;  
      Signer.CanonicalizationMethod := xcmCanon;      
      Signer.SignatureMethodType    := xmtSig;        
      Signer.SignatureMethod        := xsmRSA_SHA256;
      Signer.References             := RefList;      
      Signer.KeyName                := '';
      Signer.IncludeKey             := False;
      
      ...
      ...


Sincerely yours,
David MICHEL.
#11257
Posted: 10/07/2009 04:32:01
by Eugene Mayevski (EldoS Corp.)

Moved to HelpDesk.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 884 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!