예제 #1
0
 internal static extern bool CryptSignHash(
     IntPtr hHash,
     uint keySpec,
     IntPtr sDescription,
     CryptSignHashFlag flags,
     IntPtr pbSignature,
     ref uint pdwSignLen);
 internal static extern bool CryptSignHash(
     IntPtr hHash,
     uint keySpec,
     IntPtr sDescription,
     CryptSignHashFlag flags,
     IntPtr pbSignature,
     ref uint pdwSignLen);
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="certificate">The certificate to sign</param>
 /// <param name="flags">Flags</param>
 public CertificateSigner(X509Certificate certificate, CryptSignHashFlag flags)
 {
     this.rsaCertificate = certificate;
     this.flags          = flags;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="certificate">The certificate to sign</param>
 /// <param name="flags">Flags</param>
 public CertificateSigner(X509Certificate certificate, CryptSignHashFlag flags)
 {
     this.rsaCertificate = certificate;
     this.flags = flags;
 }