(1)PBC Library 安裝

本文一些內容源自:https://crypto.stanford.edu/pbc/

本文背景:

我是一名信息安全專業的學生。由於畢業設計需要,我最近開始接觸pbc Library,在使用過程中遇到了許多問題,想與大家分享,來幫助與我一樣的迷茫者們。

本文摘要

一,PBC庫的簡介
二,PBC庫的安裝

一,PBC是什麼?(WHAT is PBC Library)

Pairing-based cryptography is a relatively young area of cryptography that revolves around a certain function with special properties.

The PBC (Pairing-Based Cryptography) library is a free C library (released under the GNU Lesser General Public License) built on the GMP library that performs the mathematical operations underlying pairing-based cryptosystems.

The PBC library is designed to be the backbone of implementations of pairing-based cryptosystems, thus speed and portability are important goals. It provides routines such as elliptic curve generation, elliptic curve arithmetic and pairing computation. Thanks to the GMP library, despite being written in C, pairings times are reasonable. On a 1GHz Pentium III:

Fastest pairing: 11ms

Short pairing: 31ms

The API is abstract enough that the PBC library can be used even if the programmer possesses only an elementary understanding of pairings. There is no need to learn about elliptic curves or much of number theory. (The minimum requirement is some knowledge of cyclic groups and properties of the pairing.)

This tutorial shows how to implement a pairing-based cryptosystem in a few lines using the PBC library

【譯文】

基於配對的密碼學是一個相對較年輕的密碼學領域,它圍繞具有特殊屬性的某些功能而發展。

PBC(基於配對的密碼學)庫是一個免費的C庫(根據GNU較小通用公共許可證發行),它建立在GMP庫上,該庫執行基於配對密碼系統的數學運算。

設計PBC庫的目的是將其作爲實現基於配對的密碼系統的基礎,因此速度和可移植性是非常重要的兩個目標。它提供了諸如橢圓曲線生成,橢圓曲線算術和配對計算之類的範例程序。由於使用GMP庫,儘管使用C語言編寫,但配對時間是合理的。在1GHz奔騰III上:

最快配對:11ms

短配對:31ms

該API足夠抽象,即使程序員僅對配對有基本瞭解,也可以使用PBC庫。無需學習橢圓曲線或許多數論。 (最低要求是對循環基團和配對性質有所瞭解。)

一些例子(Examples)

In the example directory, there are demonstrations of many cryptosystems. More work would be needed to turn them into practical applications, but they show how to build pairing-based cryptosystems using the PBC library. Examples include:

Boneh-Lynn-Shacham short signatures

Hess identity-based signatures

Joux tripartite Diffie-Hellman

Paterson identity-based signatures

Yuan-Li identity-based authenticated key agreement

Zhang-Kim identity-based blind/ring signatures

Zhang-Safavi-Naini-Susilo signatures

【譯文】
在示例目錄中,有許多密碼系統的演示。 將它們變成實際應用還需要做更多的工作,但是它們顯示瞭如何使用PBC庫構建基於配對的密碼系統。 示例包括:

 Boneh-Lynn-Shacham短簽名

 赫斯基於身份的簽名

 Joux三方Diffie-Hellman

 Paterson基於身份的簽名

 Yuan-Li 基於身份的認證密鑰協議

 Zhang-Kim基於身份的盲/環簽名

 Zhang-Safavi-Naini-Susilo簽名

二,怎樣安裝PBC(How to install)

下面介紹一下在Ubuntu上安裝PBC Library的全過程。

1,下載GMP Library.
PBC Library依賴於GMP Library,因此首先要下載GMP Library。下載鏈接如下:https://gmplib.org/#DOWNLOAD
在這裏插入圖片描述
2,安裝GMP Library.
解壓 gmp-6.1.2.tar.bz2 ,然後切換到解壓後的目錄 gmp-6.1.2 ,執行如下命令:

# gmp-6.1.2$ ./configure
# gmp-6.1.2$  make
# gmp-6.1.2$  make check
# gmp-6.1.2$  sudo make install

一氣呵成,搞定!

3,下載PBC Library.
選第一個就OK!
https://crypto.stanford.edu/pbc/download.html
在這裏插入圖片描述4,安裝PBC Library.
方法同GMP,略;

5,開始打開PBC Library 用戶手冊,在這裏https://crypto.stanford.edu/pbc/manual/
在這裏插入圖片描述
根據用戶手冊燥起來吧!

用戶手冊是英文版的,爲了方便閱讀,我把它翻譯成了中文,具體請參照我的專欄《PBC Library》。

發佈了99 篇原創文章 · 獲贊 77 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章