private boolean digests_equals ( final byte [ ] a , final byte [ ] b ) { int i ; for ( i = 0 ; i < 16 ; ++ i ) { if ( a [ i ] != b [ i ] ) { return false ; } } return true ; }
Would use Array . equals in newer JDK ...