PBC Wrapper

jPBC provides also a wrapper on PBC. In this way all the computations can be delegated directly to PBC still using the same interfaces provided by jPBC. To know how to initialize the pairing using the wrapper go here.

To do that you need to compile a shared library written in C. jPBC provide you a cmake style build configuration.

So, follow these instructions:

  1. Install PBC:

    Before compiling the shared library you have to install PBC. Look here to see how to do that.
  2. Compile the Shared Library:

    Assuming you are using a unix environment. Starting from a jPBC distribution, go to the jpbc-pbc folder and type in a shell the following:
    ccmake .

    Here is a screenshot of the shell.

    cmake_shell

    Now press c and then g .

    A Makefile file should be generated by cmake. Now in the shell type

    make

    The output should be:

    make_output

    If everything is ok in the build folder you'll have the shared library compiled. Move the library to a system folder to be sure that java can see it. Have a look to the "java.library.path" property to know where to place the library.