cascada.primitives.simeck module
Simeck family of block ciphers.
This implementation is based on simon
and simon_rf
.
- class cascada.primitives.simeck.SimeckRF(**kwargs)[source]
Bases:
cascada.primitives.simon_rf.SimonRF
The non-linear part of the round function of Simon.
This corresponds to
f(x) = ((x <<< a) & (x <<< b)) ^ (x <<< c)
, where(a, b, c) = (5, 0, 4)
.- rx_model
- xor_model
- class cascada.primitives.simeck.XorModelSimeckRF(input_prop)[source]
Bases:
cascada.primitives.simon_rf.XorModelSimonRF
Represent the
XorDiff
differential.opmodel.OpModel
ofSimeckRF
.- op
alias of
cascada.primitives.simeck.SimeckRF
- class cascada.primitives.simeck.RXModelSimeckRF(input_prop)[source]
Bases:
cascada.primitives.simon_rf.RXModelSimonRF
Represent the
RXDiff
differential.opmodel.OpModel
ofSimeckRF
.- op
alias of
cascada.primitives.simeck.SimeckRF