示例#1
0
文件: Gost3410.cs 项目: Trivin/corefx
        public static Gost3410 Create(Gost3410Parameters parameters)
        {
            Gost3410 gost = Create();

            try
            {
                gost.ImportParameters(parameters);
                return(gost);
            }
            catch
            {
                gost.Dispose();
                throw;
            }
        }
示例#2
0
文件: Gost3410.cs 项目: Trivin/corefx
        public static Gost3410 Create(int keySizeInBits)
        {
            Gost3410 gost = Create();

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