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

Clibsodium without SODIUM_LIBRARY_MINIMAL? #248

Closed
aidantwoods opened this issue Sep 29, 2021 · 2 comments · May be fixed by #249
Closed

Clibsodium without SODIUM_LIBRARY_MINIMAL? #248

aidantwoods opened this issue Sep 29, 2021 · 2 comments · May be fixed by #249

Comments

@aidantwoods
Copy link
Collaborator

Would there be any issue, in principle, with adjusting the precompiled libsodium to be a non-minimal build? At the moment I believe that SODIUM_LIBRARY_MINIMAL 1 is set, and so some parts of Clibsodium are not available.

i.e. all of these are not currently available when importing Clibsodium

#ifndef SODIUM_LIBRARY_MINIMAL
# include "crypto_box_curve25519xchacha20poly1305.h"
# include "crypto_core_ed25519.h"
# include "crypto_core_ristretto255.h"
# include "crypto_scalarmult_ed25519.h"
# include "crypto_scalarmult_ristretto255.h"
# include "crypto_secretbox_xchacha20poly1305.h"
# include "crypto_pwhash_scryptsalsa208sha256.h"
# include "crypto_stream_salsa2012.h"
# include "crypto_stream_salsa208.h"
# include "crypto_stream_xchacha20.h"
#endif

@HashMapsData2Value
Copy link

HashMapsData2Value commented Feb 6, 2024

I would also like to have access to the full library, specifically crypto_scalarmult_ed25519

@jedisct1
Copy link
Owner

jedisct1 commented Feb 6, 2024

git clone -b stable https://github.com/jedisct1/libsodium
cd libsodium
env LIBSODIUM_FULL_BUILD=1 ./dist-build/apple-xcframework.sh

It will be placed into libsodium-apple.

@jedisct1 jedisct1 closed this as completed Feb 6, 2024
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 a pull request may close this issue.

3 participants