I guess you are using xmlsec-mscrypto library and if this is the case then I believe that this bug was already fixed in CVS: http://www.aleksey.com/pipermail/xmlsec/2005/002487.html It would be great if you can try the CVS version and report if your problem still exists. Thanks, Aleksey