public static void Get(Signature signature, Action <IGostCrypt> procedure) { var oid = signatureOids[signature]; if (!ProviderHelper.IsCompatible(oid)) { throw new ArgumentException(); } using (var prm = ProviderHelper.ParamsForSignAlgoOid(oid)) { using (var gostCrypt = new GostCrypt(prm)) { procedure(gostCrypt); } } }