Repository navigation
FAQ
You ran make in a shell where env was not sourced. Run . ./env from the repository root. You need to do this in every new shell, including CI steps and IDE terminals.
The libraries are in root/lib and deps/root/lib[64], which env adds to LD_LIBRARY_PATH. Source env in the shell where you run the program. After make install to a system prefix, run sudo ldconfig.
On Windows, DLLs are found through PATH. env adds the right folders, so start programs from an MSYS2 MinGW64 shell where you sourced it. To run them elsewhere, copy the DLLs from deps/root/bin, deps/root/lib and root/lib next to the .exe.
MINGW64. It is the only environment tested in CI.
It compiles OpenSSL and RELIC (twice: see RELIC Dual Build). This happens once; later builds reuse deps/root/. make clean wipes deps/root, so avoid it unless you need a full rebuild.
Check, in order:
-
Case: attributes are case-sensitive;
Doctor≠doctor. -
The right side: in CP-ABE the policy goes on
encryptand the attributes onkeygen. In KP-ABE it is the other way around. -
Numbers: attribute lists use
Floor=3, policies useFloor == 3. Checkin (a-b)(exclusive) versusin {a-b}(inclusive). -
Bit widths: if you used
#bits, use the same width on both sides. -
Same authority: the key and the ciphertext must come from the same master parameters (the same
-pprefix in the CLI).
No, both work (and or/OR). Mixed case like And is not a keyword. It is read as an attribute name, so the policy fails to parse.
Not yet. MA-ABE is referenced in the code but not implemented; see Known Limitations.
There is no built-in revocation. Use expiry dates in attributes and policies, or rotate the master parameters. See Key Management.
Mostly. ABE encrypts a random symmetric key, and the data itself is encrypted with authenticated symmetric encryption. The overhead grows with the number of attributes (CP-ABE policy leaves or KP-ABE attributes), not with the size of the data.
Yes. By default the crypto box returns base64 strings. Pass false as the second constructor argument to get raw bytes instead.
No. See Known Limitations for the security level of the curves.
You are probably not using clang-format 18.1.8. Check with clang-format --version; see Development Setup.
The headers are order-dependent. Revert the include order; see Known Limitations.
It is generated from src/zparser.yy. Edit the grammar instead; the build regenerates the parser.
It is a fork of the original Zeutro library, updated to OpenSSL 4.0.1, RELIC 0.7.0 and C++17, with native Windows builds and CI. The crypto box API (OpenABECryptoContext, OpenPKEContext, OpenPKSIGContext) follows the original v1.0, so its examples still apply.
OpenABE · AGPL-3.0 · Found a mistake in this wiki? Open an issue.
Using OpenABE
Reference
Contributing
Design notes
Help