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