SmimeSetSignedCmsOnVerify Property |
Namespace: MailBee.Security
Starting from .NET Standard 2.0 edition (.NET Core 2.0, UWP on Windows 10 Fall Creators Update level), MailBee always uses SignedCms for cryptographic verification operations. So if you enable SetSignedCmsOnVerify there, MailBee will just return the same object it used internally. No extra overhead.
In .NET Framework edition, however, MailBee can sometimes use Win32 API for the same. In this case, instantiating SignedCms object will be an expensive operation so it's recommended to enable this property only if you need the S/MIME message info which is not otherwise returned by other properties of SmimeResult class. Verification methods which deal with certificate stores are Win32-based (Verify(MailMessage, MessageVerificationFlags, CertificateStore)) while the methods which deal with certificate collections (Verify2(MailMessage, MessageVerificationFlags, X509Certificate2Collection)) use SignedCms.
.NET Standard 2.0 edition, on other hand, Win32-based functionality is not available (and Verify(MailMessage, MessageVerificationFlags, CertificateStore) methods simply don't exist).
Finally, .NET Core 1.0/1.1 does not support SignedCms and always operates through Win32 API. Therefore, SetSignedCmsOnVerify has no effect there.