MHumm / DelphiEncryptionCompendium

Cryptographic library for Embarcadero Delphi and potentially for FPC as well
Apache License 2.0
249 stars 65 forks source link

Support for AEGIS 256 #77

Open LecturePress opened 2 weeks ago

LecturePress commented 2 weeks ago

Is it possible to add support for new encryption algorithms like those implemented in LibSodium (AES GCM, AEGIS 128, AEGIS 256, ...) ?

MHumm commented 2 weeks ago
  1. Since this is an open source project it is possible
  2. It simply requires somebody adding the code or providing usable code at least ;-)
  3. Why do you want to have AES GCM added? This is not neccessary. Why?
  4. Since this is already in the current version. This is "just" another block concatenating mode and thus you need to set the right mode to get this.

=> I'm open to any contribution you'd like to make in these directions. Either via pull request or I can provide you a branch to work on/in.

LecturePress commented 2 weeks ago

I saw on LibSodium that those algorithms are brand new and they will be available for LibSodium users (such as PHP servers) , so I thought it would be nice to have them in Delphi side (pure code, not external DLL).

Also, the demos are quite dark. There is not enough explanations, like in the Twofish cipher example, there is no mention about how to use the vector or how to set a strong vector.

Le sam. 15 juin 2024 à 21:42, Markus @.***> a écrit :

  1. Since this is an open source project it is possible
  2. It simply requires somebody adding the code or providing usable code at least ;-)
  3. Why do you want to have AES GCM added? This is not neccessary. Why?
  4. Since this is already in the current version. This is "just" another block concatenating mode and thus you need to set the right mode to get this.

=> I'm open to any contribution you'd like to make in these directions. Either via pull request or I can provide you a branch to work on/in.

— Reply to this email directly, view it on GitHub https://github.com/MHumm/DelphiEncryptionCompendium/issues/77#issuecomment-2170667845, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOEZA437NFWL646AC6KXSTTZHSRLTAVCNFSM6AAAAABJL4XTJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZQGY3DOOBUGU . You are receiving this because you authored the thread.Message ID: @.***>

MHumm commented 2 weeks ago

This is all well and good, I also want a lot of things in there, which would be nice. But: somebody needs to implement them! Asking for support of things is easy, investing the time and brain to implement them is the cruical thing! => be bold and start ;-) I can offer you a branch and even a 1:1 translation of that code to Delphi would be a helpful start, if that translated code passes the tests to prove it works the same as the original.