1
使用ContentInfo(System.Security.Cryptography.Pkcs.ContentInfo)的以下代码确实需要很长时间才能执行。.NET ContentInfo花费很长时间来处理
我能做些什么来加速它吗?
byte[] fileContents = File.ReadAllBytes(fileName);
var contentInfo = new ContentInfo(fileContents);
var signedCms = new SignedCms(contentInfo);
signedCms.Decode(fileContents);
signedCms.RemoveSignature(0);
如果它挂着你的应用程序,你应该把它放在另一个线程中。我不知道如何加快实际功能,但... – 2010-01-12 14:14:46
必须保留在正在执行的线程中,因为它在高容量循环中 – 2010-01-12 14:25:29
@JL:我以为你知道'ContentInfo'与'ContentInfo'无关C# - 它来自.NET – 2010-01-16 11:02:15