Coder Social home page Coder Social logo

xiao-lai-white-box-sm4's Introduction

Xiao-Lai's White-box SM4

An implementation of Xiao-Lai's white-box SM4 built by WBMatrix library.

Build

$ mkdir build
$ cd build
$ cmake ..
$ make

Run

$ ./WBSM4

Included libraries

  1. WBMatrix
  2. SMx-SM4

xiao-lai-white-box-sm4's People

Contributors

nexus-tyf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xiao-lai-white-box-sm4's Issues

可以实现 wbsm4-nc 的算法吗

可以实现 wbsm4-nc 的算法:
WBSM4-NC方案相较于肖-来白盒SM4实现方
案在方案架构上没有做出改变,只是对肖-来白盒SM4
查找表的输出部分添加了8 bit的非线性编码,以异
或表完成查找表结果的异或操作。WBSM4-NC方
案将查表结果进行异或后的结果的线性编码过程再
用查找表及异或操作代替,使得整个加密过程中与
密钥相关的中间状态都受到8 bit非线性编码的保
护。WBSM4-NC方案一轮的加密过程包含4个复合
仿射变换: 与 ,4个
密钥相关查找表,12个执行异或操作的16~8 bit查
找表,4个替换复合仿射编码 的查找表
以及3个异或操作。

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.