Hi Benoit, Yes, I think you are right. It appears bc-java clones the nonce in AEADParameters, which bc-csharp doesn't do, and probably that accounts for the difference. We'll get it updated.
Regards, Pete Dettman On 23/10/19 8:59 pm, Benoit Laforest wrote: > Hi, > > In GcmBlockCipher I notice that we don’t allow 2 encryption in a row, > event if we use 2 different NONCE. What happens is that we only keep a > reference to the nonce, so even if we call Init again on the > GcmBlockCipherinstance with a new nonce, the member variable “nonce” > will always be equal to “newnonce” because we assigned “newnonce” to > “nonce” . Hence, even if we decide to provide a new nonce, it will > always be identical to the previous since they are actually the same.