Comments (6)
Unfortunately we have no plans to add C bindings to curve25519-dalek
, because we use a lot of Rust features to provide a safe API. For instance, because Rust has definite initialization, we can ensure that all points are valid curve points at all times -- so unlike libsodium, we don't have a function to check whether a point is valid, because it's not possible in safe Rust to create an invalid RistrettoPoint
.
Rather than provide C bindings to the mid-level API in curve25519-dalek
, our suggestion is that protocols/primitives should be implemented in Rust using curve25519-dalek
as a dependency, and those crates can provide minimal, buffer-oriented C APIs that are specific to the protocol/primitive.
from curve25519-dalek.
This might be helpful: https://github.com/eqrion/cbindgen
from curve25519-dalek.
Ok, will try but it's good when authors consider official bindings
from curve25519-dalek.
Ok, so the idea is to (for example) implement protocol and export only those couple of methods that deal with bytes. Got you, thanks
from curve25519-dalek.
Yeah, we should probably add this to the docs somewhere -- I'm going to reopen this issue, and close it when the docs are updated to note this
from curve25519-dalek.
Closing this now that #183 is merged.
from curve25519-dalek.
Related Issues (20)
- Incorrect backend selection for non-standard targets HOT 26
- Testing build script in CI HOT 1
- Repo Issue Templates
- 4.0.0 Remaining Breaking Changes HOT 2
- Incompatibilities with sha2 crate HOT 2
- Hashing to curve missing? HOT 2
- CPU auto-detection feature / cfg gate HOT 7
- Failed backend override - Warning or Error
- Elligator2 inverse mapping HOT 5
- Update zeroize package. HOT 3
- Missing `Scalar::from_bits_clamped` HOT 2
- Broken `-Zminimal-versions` build
- `Scalar::from_bits` regression HOT 5
- Backport old tags HOT 3
- curve25519-dalek: disable SIMD on UEFI targets
- curve25519-dalek-derive performs unsound hiding of unsafety
- crypto_box compatibility is broken in [email protected] HOT 1
- ed25519-dalek: SigningKey.to_scalar() docs are incorrect HOT 4
- SubgroupPoint doesn't implement Default/subtle traits
- `Scalar` gets copied when moved revealing the secret value. HOT 9
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 curve25519-dalek.