Example #1
0
        public static Gost3410_2012_512 Create(Gost3410Parameters parameters)
        {
            Gost3410_2012_512 gost = Create();

            try
            {
                gost.ImportParameters(parameters);
                return(gost);
            }
            catch
            {
                gost.Dispose();
                throw;
            }
        }
Example #2
0
        public static Gost3410_2012_512 Create(int keySizeInBits)
        {
            Gost3410_2012_512 gost = Create();

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