Beispiel #1
0
        public static Gost3410 Create(Gost3410Parameters parameters)
        {
            Gost3410 gost = Create();

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

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