private void noPrefixVerify(byte[] signature, byte[] data) throws GeneralSecurityException {
    if (signature.length != SIGNATURE_LEN) {
      throw new GeneralSecurityException(
          String.format("The length of the signature is not %s.", SIGNATURE_LEN));
    }
    if (!Ed25519.verify(data, signature, publicKey.toByteArray())) {
      throw new GeneralSecurityException("Signature check failed.");
    }
  }
Ed25519 verifying.

<p>The first call to this function may take longer, because Ed25519Constants needs to be
initialized.

<h3>Usage</h3>

<pre>{@code
// get the publicKey from the other party.
Ed25519Verify verifier = new Ed25519Verify(publicKey);
try {
  verifier.verify(signature, message);
} catch (GeneralSecurityException e) {
  // all the rest of security exceptions.
}
}</pre>

@since 1.1.0
java_src/src/main/java/com/google/crypto/tink/subtle/Ed25519Verify.java