System.Security.Cryptography.X509Certificates.X509Certificate2.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : void
return void
        public override void Reset()
        {
        }

Usage Example

 public static byte[] HybridDecrypt
                             (
                                 X509Certificate2 decryptorPrivateKeyPfx
                                 , Secret data
                             )
 {
     X509Certificate2 encryptorPublicKeyCer = null;
     try
     {
         RSACryptoServiceProvider decryptorPrivateKeyPfxProvider = decryptorPrivateKeyPfx.PrivateKey as RSACryptoServiceProvider;
         encryptorPublicKeyCer = new X509Certificate2(data.EncryptorPublicKeyCerRawData);
         RSACryptoServiceProvider encryptorPublicKeyCerProvider = encryptorPublicKeyCer.PublicKey.Key as RSACryptoServiceProvider;
         return HybridDecrypt
                             (
                                 decryptorPrivateKeyPfxProvider
                                 , encryptorPublicKeyCerProvider
                                 , data
                             );
     }
     catch
     {
         return null;
     }
     finally
     {
         if (encryptorPublicKeyCer != null)
         {
             encryptorPublicKeyCer.Reset();
         }
     }
 }
All Usage Examples Of System.Security.Cryptography.X509Certificates.X509Certificate2::Reset