public static boolean allZeros(byte[] buf) {
        return Arrays.areAllZeroes(buf, 0, buf.length);
    }
@return true iff all bytes in the array are zero. An empty array always returns true
        to be in line with BouncyCastle semantics.
security-utils/src/main/java/com/yahoo/security/SideChannelSafe.java