question: public static int computeChecksum ( byte [ ] buffer , int offset , int length ) throws NoSuchAlgorithmException { AbstractChecksum checksum ; checksum = JacksumAPI . getChecksumInstance ( "crc:16," + Integer . toHexString ( CRC_MASK ) + "," + Integer . toHexString ( CRC_INIT_FILE ) + ",false,false,0" ) ; checksum . reset ( ) ; checksum . update ( buffer , offset , length ) ; return ( int ) checksum . getValue ( ) ; }
target:  Optimized implementation using Jacksum. Just faster.