I have tried to compute enveloped signature using signedXml.ComputeSignature() method as show in example below. It worked fine, signedXml.ComputeSignature() method have calculated hash value of data and signed it for me. However, the problem is that I need
to perform all these steps manually.
I was not able to find out how i can calculate identical hash value of data in "Example.xml" manually, moreover i have tried to sign already calculated hash value using RSACryptoServiceProvider.SignHash() method and it gave me SignatureValue that is different
form signedXml generated value.
Any ideas how i can compute hash and signature value manually, without using signedXml class?
Thanks for your help.
My attempt to sign hash value:
CspParameters cspParams = new CspParameters();
cspParams.KeyContainerName = "XML_DSIG_RSA_KEY";
// Create a new RSA signing key and save it in the container.
RSACryptoServiceProvider rsaKey = new RSACryptoServiceProvider(cspParams);
byte hashSignature = rsaKey.SignHash(Convert.FromBase64String("e7jQRU4xmLaQmWVO9pVovhWS
View Complete Post