public boolean equalsSecretBytes(SecretBytes other) {
    byte[] myArray = bytes.toByteArray();
    byte[] otherArray = other.bytes.toByteArray();
    return MessageDigest.isEqual(myArray, otherArray);
  }
Returns true if the {@code other} byte array has the same bytes, in time depending only on the
length of both SecretBytes objects.
java_src/src/main/java/com/google/crypto/tink/util/SecretBytes.java