Repository navigation
Known Limitations
An honest list of what OpenABE does not do, or does not do well yet. Each item is a good candidate for a contribution.
"MA-ABE" shows up in several places: the OpenABE_MA_ABE constant in openabe.h, the crypto box doc comment, the authID/GID parameters of keygen, and the CLI help. None of it is wired up. OpenABE_convertStringToSchemeID only recognizes CP-ABE, KP-ABE, PK-ENC and ECDSA, so OpenABECryptoContext("MA-ABE") throws Invalid input: unrecognized scheme ID.
An ABE key stays valid for as long as the master parameters exist. Workarounds:
- put an expiry date in the attributes and a date condition in policies (Policy and Attribute Syntax);
- rotate the master parameters periodically and re-issue keys.
ECDSA is available from C++ (OpenPKSIGContext) and Python only.
The ABE schemes run on the BN-254 pairing curve. The original documentation describes it as equivalent to AES-128. Since 2016, improved attacks on the discrete logarithm in the target field (the extended Tower Number Field Sieve) have lowered the estimated security of BN-254 to roughly 100 bits. That is still far beyond practical attacks, but below the 128-bit target. deps/relic/Makefile mentions BN-382 as an alternative configuration; switching is not tested.
All schemes (pairing-based ABE, ECDH, ECDSA) rely on elliptic-curve assumptions and would be broken by a large quantum computer.
See RELIC Dual Build. The CI check guards it, but any change in deps/relic/ or src/zml/ needs care.
| Platform | Status |
|---|---|
| Ubuntu (GCC) | Tested in CI |
| Windows, MSYS2 MinGW64 | Tested in CI, except the Python bindings |
| macOS | Build support exists (Homebrew or MacPorts via macport.env) but is not tested in CI |
| CentOS / RHEL | Documented, not tested with the current dependency versions |
| Android | Documented for NDK r10e and GCC 4.8, which are long obsolete; very likely broken |
| Python bindings on Windows | Not supported: setup.py exits on non-Linux, non-macOS platforms |
Many headers under src/include/openabe/ compile only after openabe.h has included their dependencies in a specific order. As a result:
- you cannot include an individual header on its own;
-
SortIncludesis disabled in.clang-format.
Fix: make each header include what it uses, then enable include sorting. This can be done one header at a time.
-
bindings/Makefile/bindings/python/Makefileusevirtualenvandsetup.py bdist; CI uses a venv andbuild_ext --inplaceinstead. -
setup.pyimportsdistutils, which was removed from Python 3.12 onwards. It works in CI becausesetuptoolsprovides a compatibility shim, which is why CI installs it explicitly.
- Python bindings: the PKE
decryptfailure message readsFailed to encrypt. -
docs/*.pdfdescribe version 1.0 (2018). Installation steps and dependency versions in them are out of date; the Markdown pages indocs/and this wiki are current.
OpenABE · AGPL-3.0 · Found a mistake in this wiki? Open an issue.
Using OpenABE
Reference
Contributing
Design notes
Help