コード例 #1
0
ファイル: X25519.cs プロジェクト: jimsch/cose-implementations
        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
ファイル: X25519.cs プロジェクト: jimsch/cose-implementations
 static public X25519KeyPair GenerateKeyPair()
 {
     return(X25519KeyPair.GenerateKeyPair());
 }