posted 12 years ago
Greetings,
I am new here, I am not new to programming, but am kinda new to encryption.
Great work with the Bouncy Castle (BC), however I have run into a major problem.
I have a server in C#, and the client in J2ME.
They are using Rijndael Encryption, and I am using the initialization vector.
The server is using the built in .NET encryption.
For the client, I am using eclipse, and the emulator is the S60 SDK, and sun wtk also works fine.
I can encrypt/decrpyt data fine on both client and server, when running the emulators.
However, when I put the J2ME app on my Nokia phone and run it over the internet or over bluetooth, then after several packets are sent, the server suddenly starts complaining:
"System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed"
After the server gets that error, none of the data from the client can be successfully decrypted again. If I log out of the client app, it still gives the same error. I basically have to restart the app.
Any ideas please? I am stumped about this.