LSH without carry

Hi,
need help with this
K1 = (S << 1) XOR R64, where S << 1 means the data string S shifted one bit left
without carry.
unsigned char S[] = "F7BAA8735192E44A";
what is without carry?

/huvcbo
Last edited on
Does this answer your question:
1
2
3
4
5
6
7
8
9
#include <iostream>

int main ( )
{
    unsigned char S[] = { 0xF7, 0xBA, 0xA8, 0x73, 0x51, 0x92, 0xE4, 0x4A };

    for (int i = 0; i < 8; ++i)
        std::cout << std::hex << (S[i] << 4) << ' ';
}
f70 ba0 a80 730 510 920 e40 4a0
Last edited on
Yes Thanks,
but what is 'without carry' and 'with carry'
/
Topic archived. No new replies allowed.