jemand ne idee warum ich bei diesem code:
ne endlose for schleife habe? D:
die ausgabe gibt mir recht schnell das:
Code:
uint32_t* DecryptBlock(uint32_t v0, uint32_t v1, const uint32_t* key, uint32_t* dst)
{
static const int32_t delta=1640531527;
int32_t sum=-957401312;
std::cout << "decrypt block" << std::endl;
for(uint8_t i=0; i<32; ++i) {
std::cout << "round " << i << std::endl;
v1-=(((v0*16)^(v0>>5))+v0)^(sum+key[(sum>>11)&3]);
sum+=delta;
v0-=(((v1*16)^(v1>>5))+v1)^(sum+key[sum&3]);
}
dst[0]=v0;
dst[1]=v1;
return dst;
};
die ausgabe gibt mir recht schnell das:
Code:
round 37622 round 37623 round 37624 round 37625 round 37626 round 37627 round 37628 round 37629 round 37630 round 37631 round 37632 round 37633 round 37634 round 37635 round 37636 round 37637 round 37638 round 37639 round 37640 round 37641 round 37642 round 37643 round 37644