Skip to content

Known Limitations

Claudio Lucisano edited this page Sep 22, 2026 · 1 revision

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.

Features

Multi-authority ABE is not implemented

"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.

No key revocation

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.

The CLI has no signature tool

ECDSA is available from C++ (OpenPKSIGContext) and Python only.

Security notes

BN-254 is below 128-bit security today

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.

Not post-quantum

All schemes (pairing-based ABE, ECDH, ECDSA) rely on elliptic-curve assumptions and would be broken by a large quantum computer.

Security depends on the RELIC build isolation

See RELIC Dual Build. The CI check guards it, but any change in deps/relic/ or src/zml/ needs care.

Platforms

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

Code health

Headers are not self-contained

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;
  • SortIncludes is 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.

Legacy build scripts

  • bindings/Makefile / bindings/python/Makefile use virtualenv and setup.py bdist; CI uses a venv and build_ext --inplace instead.
  • setup.py imports distutils, which was removed from Python 3.12 onwards. It works in CI because setuptools provides a compatibility shim, which is why CI installs it explicitly.

Small bugs

  • Python bindings: the PKE decrypt failure message reads Failed to encrypt.
  • docs/*.pdf describe version 1.0 (2018). Installation steps and dependency versions in them are out of date; the Markdown pages in docs/ and this wiki are current.

Clone this wiki locally