基于身份的加密(IBE)——使用PBC库实现
Identity Based Encryption(IBE) - Pairings Based Crypto (PBC) library
前言:
近期在学习基于身份的加密,了解到Stanford大学开发了一个开源库:Pairings Based Crypto (PBC) library,网址:https://crypto.stanford.edu/pbc/ ,所以准备动手实践一下。本文举例说明具体的使用方法。
简介:
PBC基于C语言和GMP(The GNU Multiple Precision Arithmetic Library)库开发。
GMP库主要用于实现大数计算,网址:https://gmplib.org/
预备知识:
基于身份的加密预备知识还在学习中,后期会将这一部分内容完善。
前期准备:
(1).下载GMP库源码压缩包,下载链接:https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz
(2).下载PBC源码压缩包,下载页面:https://crypto.stanford.edu/pbc/download.html
Linux环境下:https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz
Windows环境:https://crypto.stanford.edu/pbc/files/pbc-0.5.14-win32-bin.zip
(3).下载PBC官方手册:https://crypto.stanford.edu/pbc/manual/
(4).安装GMP库(需要先安装lzip库将tar.lz格式的压缩包解压成tar格式,然后再解压tar,进行编译)