Comments (5)
This wouldn't be too hard.
The interface in general would follow that of crypto
where you initialize a context/state on the C NIF side and use an NIF resource to track that state along different calls. Once you have this, the API should be somewhat easy to stamp out.
Testing the API is equally easy if you generate messages in a list and process them.
It is a new kind of API though, so some work needs to be done in order to pull it off.
from enacl.
Update on this one:
I'm working toward a cleaner repository on the C side of things. This significantly simplifies the implementation of this issue. I'm probably going to slipstream it in once the dust settles from the cleanup.
from enacl.
This should now be possible to add. The general implementation follows that of either multi-part signatures or generic hashing.
from enacl.
I implemented it in #44
from enacl.
This has now been merged. Is slated for next release, once we have some EQC tests for the new API.
from enacl.
Related Issues (20)
- Erratic results using pwhash_str_verify/1 when supplying printable bitstring HOT 3
- Up to date libsodium documentation HOT 1
- aead_chacha20poly1305_* argument divergence HOT 6
- Is there a way to compute pubkey from privkey? HOT 2
- rebar3 compile fails on ubuntu HOT 3
- trouble compiling on centos6 (libsodium-16 & libsodium-16-devel installed) HOT 2
- enacl_nif.so not generated with rebar 3.14.0 on Erlang/OTP 23 Erts 11.0 HOT 2
- problem compiling and running with Apple Silicon processor HOT 11
- on_load_function_failed HOT 2
- problems compiling enacl HOT 2
- Missed file: sodium.h HOT 5
- Detached ``verify'' verifies attached signatures HOT 2
- pwhash_limit typespec is not available HOT 4
- Typespec for `generichash` advertises `iodata`, but seemingly doesn't work
- Fails at runtime in `nix develop` / `direnv` with `use flake` HOT 1
- box_easy and box_open_easy missing
- Makefile for NIFs on Apple M1 processor is incorrect HOT 1
- enacl:pwhash() doesn't work as expected on Windows x64
- Erlang dirty schedulers are not actually being used in many cases (if not in all the cases)
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 enacl.