public static boolean arraysEqual(byte[] lhs, byte[] rhs) {
        return Arrays.constantTimeAreEqual(lhs, rhs);
    }
Compare two byte arrays without the use of data-dependent branching that may leak information
about the contents of either of the arrays.

<strong>Important:</strong> the <em>length</em> of the arrays is not considered secret, and
<em>may</em> be leaked if arrays of differing sizes are given.

@param lhs first array of bytes to compare
@param rhs second array of bytes to compare
@return true iff both arrays have the same size and are element-wise identical
security-utils/src/main/java/com/yahoo/security/SideChannelSafe.java