예제 #1
0
        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)));
            }
            }
        }
예제 #2
0
 private static Curve25519Provider constructBestProvider(csharp.ISha512 sha, SecureRandomProvider random)
 {
     return(constructClass(typeof(DonnaCSharpCurve25519Provider), new object[] { sha, random }));
 }