Hey everyone.
I was wondering if someone with development experience could explain to me what these written codes on Impulses Base mean and how they work.
The following codes are located inside the password cryptography class. I'm not asking for help however I would find a formal breakdown of the codes to be very helpful.
Thanks a ton in return everyone ^^.
I was wondering if someone with development experience could explain to me what these written codes on Impulses Base mean and how they work.
The following codes are located inside the password cryptography class. I'm not asking for help however I would find a formal breakdown of the codes to be very helpful.
Code:
static UInt32 LeftRotate(UInt32 var, UInt32 offset)
{
UInt32 tmp1, tmp2;
offset &= 0x1f;
tmp1 = var >> (int)(32 - offset);
tmp2 = var << (int)offset;
tmp2 |= tmp1;
return tmp2;
}
Code:
static UInt32 RightRotate(UInt32 var, UInt32 offset)
{
UInt32 tmp1, tmp2;
offset &= 0x1f;
tmp1 = var << (int)(32 - offset);
tmp2 = var >> (int)offset;
tmp2 |= tmp1;
return tmp2;
}