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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Table of Contents<br />
Preface ........................................................................................................................................................v<br />
1. Installing <strong>PBC</strong> ........................................................................................................................................1<br />
1.1. GNU Build System (autotools) ...................................................................................................1<br />
1.2. Simple Makefile ..........................................................................................................................1<br />
1.3. Quick start ...................................................................................................................................1<br />
1.4. Basics ..........................................................................................................................................2<br />
2. Tutorial ...................................................................................................................................................4<br />
2.1. BLS signatures ............................................................................................................................4<br />
2.2. Import/export...............................................................................................................................5<br />
3. Pairing functions....................................................................................................................................8<br />
3.1. Initializing pairings .....................................................................................................................8<br />
3.2. Applying pairings........................................................................................................................9<br />
3.3. Other pairing functions .............................................................................................................10<br />
4. Element functions ................................................................................................................................12<br />
4.1. Initializing elements..................................................................................................................12<br />
4.2. Assigning elements ...................................................................................................................13<br />
4.3. Converting elements..................................................................................................................14<br />
4.4. Element arithmetic ....................................................................................................................14<br />
4.5. Exponentiating elements ...........................................................................................................16<br />
4.6. Comparing elements .................................................................................................................18<br />
4.7. Element I/O ...............................................................................................................................19<br />
4.8. Random elements......................................................................................................................20<br />
4.9. Element import/export ..............................................................................................................21<br />
5. Param functions ...................................................................................................................................24<br />
5.1. Param generation.......................................................................................................................24<br />
6. Other functions ....................................................................................................................................28<br />
6.1. Random bits ..............................................................................................................................28<br />
6.2. Custom allocation .....................................................................................................................29<br />
6.3. Logging .....................................................................................................................................29<br />
7. Bundled programs ...............................................................................................................................31<br />
7.1. Pairing-based calculator............................................................................................................31<br />
7.2. Parameter generation.................................................................................................................32<br />
7.3. Example cryptosystems.............................................................................................................32<br />
7.4. Benchmarks...............................................................................................................................33<br />
8. <strong>PBC</strong> internals .......................................................................................................................................34<br />
8.1. <strong>Group</strong>s, rings, fields ..................................................................................................................34<br />
8.2. Internal randomness ..................................................................................................................36<br />
8.3. Type A internals ........................................................................................................................37<br />
8.4. Type B internals ........................................................................................................................37<br />
8.5. Type C internals ........................................................................................................................38<br />
8.6. Type D internals ........................................................................................................................38<br />
8.7. Type E Internals ........................................................................................................................38<br />
8.8. Type F internals.........................................................................................................................39<br />
iii