class VerifyData {

  public static boolean verify(
      final byte[] verifyData,
      final byte[] handshakeTrafficSecret,
      final byte[] finishedHash,
      final boolean quic) {
    checkArgument(verifyData.length > 0);
    checkArgument(handshakeTrafficSecret.length == 32);
    checkArgument(finishedHash.length == 32);

    final byte[] actual = create(handshakeTrafficSecret, finishedHash);

    return CryptoEquals.isEqual(verifyData, actual);
  }

}