I am trying to follow the solution in the following post to be able to use a CNG private key as signing key for my SignedXml.
CustomSignedXml derives from SignedXml. However, when I do this and call ComputeSignature method, I get the exception
Method is not supported.at System.Security.Cryptography.RSA.DecryptValue(Byte[] rgb) at System.Security.Cryptography.Xml.SignedXml.ComputeSignature()
As the stack trace suggest Method is not supported is thrown from DecryptValue which I see is a deprecated method from RSA base class. I can't override it to use the RSACng.Decrypt because RSACng is a sealed class.
What am I missing here?
