Giter Club home page Giter Club logo

ibe's Introduction

编译

mkdir build
cd build
cmake ../
make

Documents

doxygen Doxyfile
firefox docs/html/index.html &

run tests

get the configure files

./sm9test               // 生成配置文件 

run the simple communication

./servertest            // 运行server
./client                // 运行client

运行结果:Server 获取到 Client 的ID 和 AES 密钥

decrypted text : Client
decrypted text length : 52

test the secret sharing functions

./sstest                // test the secret sharing functions

外部库

ini parser json parser

todo

  • 协议完善
    1. IBE通信
    2. 服务器收到用户ID 和 AES 密钥后,生成相应的私钥,用AES加密 (IV由服务器选择,将IV和加密后的私钥按照协议格式发送给客户端)
    3. 客户端收到AES加密的密钥,解密后获取私钥保存到本地
    4. 某一实体向另一实体发起密钥协商请求,请求附带内容为本方的$MPK_A$
    5. 实体收到密钥协商请求后返回密钥协商ACK,附带内容为本方的$MPK_B$和$Enc_{MPK_A, ID_A}(key_B)$
    6. 实体收到协商ACK后返回ACK_2,附带内容为$Enc_{MPK_B, ID_B}(key_A)$ (要不要再加一轮ACK待后续修改)
    7. 会话密钥协商结束后用$(key_A||key_B)$为AES密钥的通信设计
  • 秘密共享
    1. generate a random polynomial
    2. get the value of f(x) given the x
    3. get the value of the lagrange polynomial $l_i(x)$ given the x
    4. point addition
    5. scalar multiplication
  • 签名和认证

notes

functions for point addition and scalar multiplication

int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
                 const EC_POINT *b, BN_CTX *ctx);

int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,
                  size_t num, const EC_POINT *p[], const BIGNUM *m[],
                  BN_CTX *ctx);

ibe's People

Contributors

wxy1228 avatar w158rk avatar ranzhao1 avatar

Stargazers

Stone Ling avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.