Giter Site home page Giter Site logo

Comments (2)

openluopworld avatar openluopworld commented on August 16, 2024

以第一行的第一个元素为例,最终的结果应该是 2s0 ^ 3s1 ^ s2 ^ s3。推导如下:

2s0 ^ 3s1 ^ s2 ^ s3
= 2s0 ^ (2^1)s1 ^ s2 ^ s3
= 2s0 ^ (2s1 ^ s1) ^ s2 ^ s3
= 2s0 ^ 2s1 ^ s1 ^ s2 ^ s3
= (2s0 ^ s0 ^ s0) ^ 2s1 ^ s1 ^ s2 ^ s3
= 2s0 ^ s0 ^ s0 ^ 2s1 ^ s1 ^ s2 ^ s3
= 2s0 ^ 2s1 ^ s0 ^ s0 ^ s1 ^ s2 ^ s3
= 2(s0^s1) ^ s0 ^ (s0 ^ s1 ^ s2 ^ s3)

2(s0^s1) 表示为 mult2(tmp ^ tmp[i+1])
^ s0 表示为 ^ tmp[i]
^ (s0 ^ s1 ^ s2 ^ s3) 表示为 ^ t,其中ttmp[i] ^ tmp[i+1] ^ tmp[i+2] ^ tmp[i+3]

其它可以类似推导。

from aes_128.

rpodman avatar rpodman commented on August 16, 2024

666666666666, 感谢您解答了我的疑惑, 懂了, 再次祝您工作顺利, 万事如意, 感谢您!!!!

from aes_128.

Related Issues (4)

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.