Alright, I'll keep this plain & simple.
I'm working on a brute implementation of SHA-256 in Java, and to keep the class methods conducive to other classes in the app, I've decided to I/O the data as an array of 32-bit integers (int). Obviously, these kinds of uses rely heavily on use of bitwise operators, so how do I accomplish bitwise shifting across an array of ints, as such:
Given an array of data, suppose:
int[16] data;
where the first 14 integers' worth of data is filled with 0x0000000, for the purposes of conversation, but the lowest two are filled respectively:
data[14] = 0x12345678;
data[15] = 0x01ABCDEF;
How do I accomplish a leftwise shift so that if shifted left by two,
data[13] = 0x00000012;
data[14] = 0x34567801;
data[15] = 0xABCDEF00;
Anyone got any ideas?