TEA
#1
Hello you added Skip32, could you add TEA 32 bit block and 64 bit key ???

Code:
uint16_t Data[2];
uint16_t Key[4];

void __fastcall TMyThread::tea_decrypt()
{
  unsigned char i;
  unsigned int delta = 0x9e37;
  unsigned int sum = delta<<5;

  for (i = 0;i < 32;i++)
{
  Data[1]-=(((Data[0])+Key[2])^(Data[0]+sum)^((Data[0]>>5)+Key[3]));
  Data[0]-=(((Data[1]<<4)+Key[0])^(Data[1]+sum)^(Data[1]+Key[1]));
  sum -= delta;
}
}
Reply


Messages In This Thread
TEA - by andynvkz - 03-28-2021, 06:27 AM
RE: TEA - by andynvkz - 04-04-2021, 10:55 AM