Giter Site home page Giter Site logo

S2 rotate in simon about cryptosmt HOT 6 CLOSED

kste avatar kste commented on July 17, 2024
S2 rotate in simon

from cryptosmt.

Comments (6)

kste avatar kste commented on July 17, 2024

I'm not sure what you mean with S2, maybe you can elaborate on that?

from cryptosmt.

nareshmuppalaneni avatar nareshmuppalaneni commented on July 17, 2024

In simon round, there is a left circular shift for twice (S2)

from cryptosmt.

kste avatar kste commented on July 17, 2024

This function here is used to filter invalid characteristics due to the dependency of the inputs to the AND. If you look at the rotational AND on bit level you can derive such a formula.

from cryptosmt.

nareshmuppalaneni avatar nareshmuppalaneni commented on July 17, 2024

In Simond round getStringForSimonRound function what for this code
#More improved
command += "ASSERT({0} = (IF {2} = 0x{4} THEN BVSUB({5},0x{4},0x{6}1) ELSE BVXOR(~{1} & ~{2} & {3}, {2}) ENDIF));".format(w, StpCommands().getStringRightRotate(x_in, 7, wordsize),
x_in, StpCommands().getStringRightRotate(x_in, 14, wordsize),
"f"(wordsize / 4), wordsize, "0"((wordsize / 4)- 1));

from cryptosmt.

kste avatar kste commented on July 17, 2024

This was slightly changed in the latest version, so you might want to have a look at the current version.

This part computes the differential probability for one round. The if/then/else is needed to deal with the special case when you have a difference of 0xFF...FF.

from cryptosmt.

kste avatar kste commented on July 17, 2024

A clear description of this can now be found in http://eprint.iacr.org/2015/145

from cryptosmt.

Related Issues (15)

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.