14.07.2013 Views

PBC Library Manual 0.5.11 - Stanford Crypto Group

PBC Library Manual 0.5.11 - Stanford Crypto Group

PBC Library Manual 0.5.11 - Stanford Crypto Group

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1. Installing <strong>PBC</strong><br />

The <strong>PBC</strong> library needs the GMP library (http://www.swox.com/gmp/). Multiple ways to install <strong>PBC</strong> are<br />

provided.<br />

1.1. GNU Build System (autotools)<br />

This build system has been tested and works on Linux and Mac OS X with a fink installation.<br />

$ ./configure<br />

$ make<br />

$ make install<br />

On Windows, the configure command requires a couple of options:<br />

$ ./configure -disable-static -enable-shared<br />

By default the library is installed in /usr/local/lib. On some systems, this may not be in the library<br />

path. One way to fix this is to edit /etc/ld.so.conf and run ldconfig.<br />

1.2. Simple Makefile<br />

For speed and simplicity, I use simple.make during development. Naturally it is less portable.<br />

$ make -f simple.make<br />

<strong>PBC</strong> uses some GNU C extensions such as nested functions.<br />

1.3. Quick start<br />

We shall use the following notation. For our purposes, the pairing is a bilinear map from two cyclic<br />

groups, G1 and G2 to a third group GT, where each group has prime order r.<br />

Run pbc/pbc and type:<br />

g := rnd(G1);<br />

g;<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!