How can I port this Java “AES/GCM/NoPadding” encryption algorithm code to C#
I am involved in the development of two system communication projects. The Java-based system on the other side requires the transmitted content to be encrypted using AES. Our system is currently based on .NET Framework 7 (NET7). I am attempting to decrypt the content from the other party using C#. I tried implementing the algorithm using the “BouncyCastle.Cryptography” framework, attempting to mimic the Java coding style, but unfortunately, I was unsuccessful. I have been struggling with this issue for a few days and have decided to seek help here.