pbc/0.5.14

The PBC (Pairing-Based Crypto) library is a C library providing low-level routines for pairing-based cryptosystems.
Recipe info
2024-01-21

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
pbc/0.5.14

Using pbc

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
pbc/0.5.14
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("pbc/0.5.14")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): pbc
  • CMake target name(s): pbc::pbc
  • pkg-config file name(s): pbc.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(pbc REQUIRED)
# ...
target_link_libraries(YOUR_TARGET pbc::pbc)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the pbc homepage listed above:

#include "pbc/pbc.h"
#include "pbc/pbc_a1_param.h"
#include "pbc/pbc_a_param.h"
#include "pbc/pbc_curve.h"
#include "pbc/pbc_d_param.h"
#include "pbc/pbc_e_param.h"
#include "pbc/pbc_f_param.h"
#include "pbc/pbc_field.h"
#include "pbc/pbc_fieldquadratic.h"
#include "pbc/pbc_fp.h"
#include "pbc/pbc_g_param.h"
#include "pbc/pbc_hilbert.h"
#include "pbc/pbc_i_param.h"
#include "pbc/pbc_memory.h"
#include "pbc/pbc_mnt.h"
#include "pbc/pbc_multiz.h"
#include "pbc/pbc_pairing.h"
#include "pbc/pbc_param.h"
#include "pbc/pbc_poly.h"
#include "pbc/pbc_random.h"
#include "pbc/pbc_singular.h"
#include "pbc/pbc_ternary_extension_field.h"
#include "pbc/pbc_test.h"
#include "pbc/pbc_utils.h"
#include "pbc/pbc_z.h"