electroRF
Member
Hi,
I'm reading on SHA1 algorithm, and saw this line of code:
where Length_Low was defined as unsigned
What does it mean "forcing"?
isn't Length_Low is already 32-bit, assuming unsigned is 4-byte? (it was indeed mentioned in the comments that they assume 32-bit machine at least).
I'm reading on SHA1 algorithm, and saw this line of code:
C:
/* Force it to 32 bits */
context->Length_Low &= 0xFFFFFFFF;
where Length_Low was defined as unsigned
C:
unsigned Length_Low; /* Message length in bits */
What does it mean "forcing"?
isn't Length_Low is already 32-bit, assuming unsigned is 4-byte? (it was indeed mentioned in the comments that they assume 32-bit machine at least).