示例#1
0
        static public X25519KeyPair GenerateKeyPair()
        {
            X25519KeyPair key = new X25519KeyPair();

            key.privateValue = new byte[32];
            Message.GetPRNG().NextBytes(key.privateValue);

            key.publicValue = X25519.CalculateAgreement(nine, key.privateValue);
            return(key);
        }
示例#2
0
 static public X25519KeyPair GenerateKeyPair()
 {
     return(X25519KeyPair.GenerateKeyPair());
 }