c/xxtea: style
This commit is contained in:
parent
640b4aa6ca
commit
67402eee42
@ -29,12 +29,14 @@ static const unsigned ITERATIONS = 32; // each iteration performs two feistel ro
|
|||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
static constexpr uint32_t mix (uint32_t Z,
|
static constexpr
|
||||||
uint32_t Y,
|
uint32_t
|
||||||
uint32_t S,
|
mix (uint32_t Z,
|
||||||
size_t E,
|
uint32_t Y,
|
||||||
size_t P,
|
uint32_t S,
|
||||||
const uint32_t *restrict K)
|
size_t E,
|
||||||
|
size_t P,
|
||||||
|
const uint32_t *restrict K)
|
||||||
{
|
{
|
||||||
return ((Z >> 5 ^ Y << 2) + (Y >> 3 ^ Z << 4)) ^ ((S ^ Y) + (K[(P & 3) ^ E] ^ Z));
|
return ((Z >> 5 ^ Y << 2) + (Y >> 3 ^ Z << 4)) ^ ((S ^ Y) + (K[(P & 3) ^ E] ^ Z));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user