mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
cppcheck macro sizeof
This commit is contained in:
parent
f13149826c
commit
f761874347
1 changed files with 15 additions and 11 deletions
|
@ -51,10 +51,14 @@ void transform_D(uint8_t* ru) {
|
|||
uint32_t v2 = ((ru[7] << 24) | (ru[6] << 16) | (ru[5] << 8) | ru[4]) + c_D[p++];
|
||||
for (i = 0; i < 12; i += 2)
|
||||
{
|
||||
uint32_t t1 = PM3_ROTL(v1 ^ v2, v2 & 0x1F) + c_D[p++];
|
||||
uint32_t t2 = PM3_ROTL(v2 ^ t1, t1 & 0x1F) + c_D[p++];
|
||||
v1 = PM3_ROTL(t1 ^ t2, t2 & 0x1F) + c_D[p++];
|
||||
v2 = PM3_ROTL(t2 ^ v1, v1 & 0x1F) + c_D[p++];
|
||||
uint32_t tempA = v1 ^ v2;
|
||||
uint32_t t1 = PM3_ROTL(tempA, v2 & 0x1F) + c_D[p++];
|
||||
uint32_t tempB = v2 ^ t1;
|
||||
uint32_t t2 = PM3_ROTL(tempB, t1 & 0x1F) + c_D[p++];
|
||||
tempA = t1 ^ t2;
|
||||
v1 = PM3_ROTL(tempA, t2 & 0x1F) + c_D[p++];
|
||||
tempB = t2 ^ v1;
|
||||
v2 = PM3_ROTL(tempB, v1 & 0x1F) + c_D[p++];
|
||||
}
|
||||
|
||||
//Re-use ru
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue