Here you can find the source of shiftRightN(int[] block, int n)
static void shiftRightN(int[] block, int n)
//package com.java2s; //License from project: Open Source License public class Main { static void shiftRightN(int[] block, int n) { int i = 0; int bits = 0; for (;;) { int b = block[i]; block[i] = (b >>> n) | bits; if (++i == 4) { break; }//from w w w . jav a 2 s. c o m bits = b << (32 - n); } } static void shiftRightN(int[] block, int n, int[] output) { int i = 0; int bits = 0; for (;;) { int b = block[i]; output[i] = (b >>> n) | bits; if (++i == 4) { break; } bits = b << (32 - n); } } }