Closed iodev closed 6 years ago
Hi @iodev This bug should go on the main BC repo: https://github.com/bcgit/bc-csharp
Bugs here should only be about the packaging of the Portable version. The code is the same as BC, so functional issues belong there.
Thanks
I have a blocking issue in Portable.BouncyCastle v1.8.1.3 nuget package. Using the following code, the error is isolated. Within 55 exchanges, between receiver and sender, the agreement calculation will not match on the receiving side, at some random point. The occasion that the error occurs is flagged out in the console app attached; that is, when sender and receiver do not calculate the same agreement. To avoid the initial exchange error that would occur, you can uncomment the initial keys, or leave it as it is here, with two initial exchanges, not reporting the error. So, in Main, if you use the 4 keys, then you can comment out the first two initial exchanges before the loop.
Here is the code:
Attaching runnable console solution. My.zip