public static Gost3410_2012_512 Create(Gost3410Parameters parameters) { Gost3410_2012_512 gost = Create(); try { gost.ImportParameters(parameters); return(gost); } catch { gost.Dispose(); throw; } }
public static Gost3410_2012_512 Create(int keySizeInBits) { Gost3410_2012_512 gost = Create(); try { gost.KeySize = keySizeInBits; return(gost); } catch { gost.Dispose(); throw; } }