Hi,

We want to use the GcmBlockCipher with 256 bit AES key (created from X25519 DH 
agreement) to encrypt our gameplay payload at 60 frame/sec before sending it 
(at the same frame rate).  The payload data size may vary between 800 to 1300 
bytes, this is not final yet.

Our main concern now is there seem to be way for the moment to reuse a 
AeadParameters without reinstancing it, which will lead to a lot of garbage 
collect, that we cannot afford for our network game.

The ideal way would have been to reuse the same GcmBlockCypher and parameters 
and simply change the IV every frame before each encryption, and then send the 
encrypted payload with the IV.

Has someone encountered the same type of challenge before? Or maybe we 
misunderstood something?

Thanks a lot, 😊

Benoit

Reply via email to