Example #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _impl.Dispose();
         base.Dispose(disposing);
     }
 }
Example #2
0
        public static DSA Create(DSAParameters parameters)
        {
            DSA dsa = Create();

            try
            {
                dsa.ImportParameters(parameters);
                return(dsa);
            }
            catch
            {
                dsa.Dispose();
                throw;
            }
        }
Example #3
0
        public static DSA Create(int keySizeInBits)
        {
            DSA dsa = Create();

            try
            {
                dsa.KeySize = keySizeInBits;
                return(dsa);
            }
            catch
            {
                dsa.Dispose();
                throw;
            }
        }