public static Curve25519 getInstance(string type, csharp.ISha512 sha, SecureRandomProvider random) { switch (type) { case BEST: default: { return(new Curve25519(constructBestProvider(sha, random))); } case CSHARP: { return(new Curve25519(constructCSharpProvider(sha, random))); } } }
private static Curve25519Provider constructBestProvider(csharp.ISha512 sha, SecureRandomProvider random) { return(constructClass(typeof(DonnaCSharpCurve25519Provider), new object[] { sha, random })); }