Comments (1)
A normal lock means introducing a dependency on pthreads, and I really want to avoid that.
reinit()
and shutdown()
are gone.
init()
can be called more than once but is not thread-safe. It probably shouldn't even try to be.
Actually all these issues with init are due to the fact that the current API doesn't take any context.
So another way to go is to replace all the crypto__() functions with sodium__(, ...) and provide crypto_*() wrappers that always use the reference implementations.
from libsodium.
Related Issues (20)
- crypto_generichash_blake2b_salt_personal takes 16 byte input but docs say the input must be 8 bytes HOT 2
- Update OS used to build .NET package HOT 20
- sodium_malloc() does not check return value from sodium_mlock() HOT 2
- Compiling test codes successfully ,but the generated executable file does not run. HOT 1
- Linker command failed - android-armv7 script HOT 6
- AES-256 GCM crypto_stream - are there any plans to support it? HOT 3
- is the constant crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX wrong? HOT 4
- Where can I download Libsodium DLLs? HOT 1
- Not all bits of secret key are significant in crypto_box_open HOT 3
- [Some error I got when I am implementing commitment scheme based on lib sodium] HOT 1
- AEGIS-[128,256]X HOT 2
- Cross platform decrypting
- strict-aliasing violation in blkxor pwhash_scryptsalsa208sha256_nosse.c HOT 1
- Test failing during pip install as a dependency of pynacl==1.5.0 on arm64/apple m1 image building HOT 1
- macOS randombytes_buf infinite loop HOT 14
- Chacha/box tests segfault when compiling with LLVM Polly HOT 1
- support for veilid crypto HOT 4
- aarch64 build fails after updating from 1.0.18 to 1.0.19 HOT 2
- android-ndk-r26-rc1 build error for stable HOT 6
- Why soname change from 23 to 26 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsodium.