public static boolean isEqual ( byte ba1 [ ] , byte ba2 [ ] ) { if ( ba1 . length != ba2 . length ) return false ; for ( int i = 0 ; i < ba1 . length ; ++ i ) { if ( ba1 [ i ] != ba2 [ i ] ) return false ; } return true ; }
Compare two byte arrays for equivalency