日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

Linux下Cpabe Toolkit安装教程

發布時間:2025/1/21 linux 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux下Cpabe Toolkit安装教程 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.


1、安裝m4

sudo?apt-get install m4

2、安裝gmp
http://gmplib.org/???下載gmplib

./configure make make check sudo make install

3、安裝pbc
http://crypto.stanford.edu/pbc/download.html??下載pbc
解壓,安裝

./configure

出現

?flex not found

執行

sudo apt-get install flex

安裝成功后繼續執行

./configure

出現

bison not found

?

運行?

sudo apt-get install bison

成功后執行

./configure make sudo make install

4、安裝cpabe toolkit

http://hms.isi.jhu.edu/acsc/cpabe/or http://acsc.cs.utexas.edu/cpabe/?下載cpabe-0.11和libbswabe-0.9

安裝openSSL

sudo apt-get install libssl-dev

進入libbswabe-0.9解壓目錄

/configure

報錯

checking for GLIB - version >= 2.0.0... no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GLIB is incorrectly installed.

執行

sudo apt-get install libglib2.0-dev

安裝成功后,執行

./configure make sudo make install

進入cpabe-0.11解壓目錄

./configure

出錯

/usr/bin/ld: note: '__gmpz_init' is defined in DSO /usr/local/lib/libgmp.so so try adding it to the linker command line /usr/local/lib/libgmp.so: could not read symbols: 無效的操作

改為另一種方式編譯:

sudo apt-get install checkinstall

修改Makefile,LDFLAGS后加入-lgmp

sudo checkinstall

編譯成功~

執行

?cpabe-setup -h

顯示信息:

Usage: cpabe-setup [OPTION ...] ? Generate system parameters, a public key, and a master secret key for use with cpabe-keygen, cpabe-enc, and cpabe-dec. ? Output will be written to the files "pub_key" and "master_key" unless the --output-public-key or --output-master-key options are used. ? Mandatory arguments to long options are mandatory for short options too. ? -h, --help??????????????????? print this message ? -v, --version???????????????? print version information ? -p, --output-public-key FILE? write public key to FILE ? -m, --output-master-key FILE? write master secret key to FILE ? -d, --deterministic?????? ????use deterministic "random" numbers ?????????????????????????????? (only for debugging)

安裝成功~

?

成功安裝截圖:


參考:http://www.cnblogs.com/rockorange/p/3757805.html

總結

以上是生活随笔為你收集整理的Linux下Cpabe Toolkit安装教程的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。