Home Forums Support ConnectionDefaultSendReceiveOptions

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4339
    Anonymous
    Inactive

    Hello,

    My application should have a few encrypted connections.
    I tried that:

    
    byte[] Key = peer.DiffieHellman.DeriveKeyMaterial(CngKey.Import(PacketData, CngKeyBlobFormat.EccPublicBlob));
    RijndaelPSKEncrypter.AddPasswordToOptions(connection.ConnectionDefaultSendReceiveOptions.Options, BitConverter.ToString(Key));
    

    But this code also overwrites the keys for other connections. Is there a correctly way to make a few encrypted connections with different passwords?


    PS: Google Translate =)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.