Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translated into C# 10, added CMake support, a build script and various fixes. #28

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

GlitchedPolygons
Copy link

@GlitchedPolygons GlitchedPolygons commented Oct 9, 2020

Hey there :)

Cool stuff! Thought I'd fork this and add a CMakeLists.txt along with a build.sh to make including, building, linking and packaging the library easy. The build.sh bash script also works under Windows if run using Git Bash for Windows (bash build.sh). It requires CMake to be installed on the system.

I also implemented a C# wrapper class, which can be found inside the csharp/ folder and is as easy as copy-pasting it into a consuming C# project. If you like it, merge it, otherwise just ditch it: fully understandable!
I'll keep my own fork anyway.

For more details, check out the CHANGELOG.

Cheers, all the best! :D

  • Raphael Beck

[EDIT]

  • Changed PR title to include the managed C# translation (vs. the native wrapper that was in there previously).
    • Check out the csharp/ folder to access both the managed C# variant (fully translated from ANSI C into C# 10) as well as the native code C# wrapper (which calls the native binary DLL/shared lib).
  • Added links to the text body above.

GlitchedPolygons and others added 26 commits October 8, 2020 22:52
* Added “ORLP_” prefix to declspec macro (to prevent possible collisions with other libraries making use of the same name).
* Added CMakeLists.txt and build.sh for easy packaging and inclusion into other projects.
* Deleted .dll files inside repo.
Related to issue [orlp#10](orlp#10) from the orlp/ed25519 repository.
…nd this idea; CMake packs the ed25519.h in shared builds into the nice output include dir just fine on its own).

Modified CHANGELOG accordingly.

Copy license.txt into CMake build output dir on package.

Added "ORLP_" prefix to ed25519.h header guard macro to prevent potential name clashes.
…s (this dir needs to be copied to consuming C# project output directories, where the executable resides).
Check out the orlp/ed25519 repo's PR orlp#15 for more details: orlp#15
Updated csharp/lib/x64/windows/orlp-ed25519.dll
… for better libsodium/SUPERCOP ref10 interop support.
- Added build and test shell scripts (both for Windows and Linux/Mac)
- Added feature flag to CMakeLists.txt for preventing potentially unnecessary NULL-checks
- Reformatted src code files (using a .clang-format file; also added in this commit)
- Simplified verify function a bit
@GlitchedPolygons GlitchedPolygons changed the title Added C# wrapper, CMake support, a build script and various fixes. Translated into C# 10, added CMake support, a build script and various fixes. Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant