jcryptool / crypto

JCrypTool Crypto Plug-ins
https://www.cryptool.org
Eclipse Public License 1.0
67 stars 37 forks source link

Fix key recreation bug #377

Closed tassadarius closed 1 year ago

tassadarius commented 1 year ago

Summary

User facing

Code

Details

I set out to fix the bug which I already suspected requires a major rewrite of the algorithm code handling the encryption/decryption. Especially the old class Session was doing some things majorly wrong. The new version handles the sessions better and closer to real-world, by providing a „Server“ interface where parties can interact with each other. In some parts I could not avoid all the „I talk directly to the other class“, but it was reduced IMHO to a bearable amount.