Rabe-ffi
Rust Attribute-Based Encryption library rabe's C FFI binding , support CP-ABE and KP-ABE encrypt and decrypt, submodule of Rabe.Core c# library.
Build
- Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Set default toolchain to nightly
rustup default nightly
- Clone and build project
git clone https://github.com/Aya0wind/Rabe-ffi.git
cd Rabe-ffi
cargo build --release
- Add dynamic link library to your c project
cp target/release/librabe_ffi.so /your/project/path
- Add bindings.h to your c project as a c header file
cp bindings.h /your/project/path/yourheadername.h
Documentation
See unit tests in sources.