The System.Security.Cryptography.Pkcs.CmsSigner class provides signing functionality.
See Also: CmsSigner Members