private void digestInteger ( MessageDigest digest , int value ) { byte [ ] valueBytes = new byte [ 4 ] ; Util . numberToBytes ( value , valueBytes , 0 , 4 ) ; digest . update ( valueBytes ) ; }
Helper method to add a Java integer value to a message digest .