public static void putBytesIntoBlock(byte[] block, byte[] data) {
    int bSize = block.length;
    int dSize = data.length;
    int i = 0;
    while (i<dSize && i<bSize) {
        block[bSize-i-1] = data[dSize-i-1];
        i++;
    }
    while (i<bSize) {
        block[bSize-i-1] = (byte)0x00;
        i++;
    }
 }