The following code using ContentInfo(System.Security.Cryptography.Pkcs.ContentInfo) is really taking a long time to execute.
Is there anything I can do to speed it up?
byte[] fileContents = File.ReadAllBytes(fileName );
var contentInfo = new ContentInfo(fileContents);
var signedCms = new SignedCms(contentInfo);
signedCms.Decode(fileContents);
signedCms.RemoveSignature(0);
In my situation - I figured out the problem, it was only taking too long during a debug session, outside of the VS debugger, the operation performed at normal acceptable speeds.