@Override
    protected boolean engineVerify(byte[] sigBytes) throws SignatureException {
        if (publicKey == null) {
            // This should not happen.
            throw new SignatureException("No publicKey provided");
        }
        int result = NativeCrypto.SLHDSA_SHA2_128S_verify(
                buffer.array(), buffer.size(), sigBytes, publicKey.getRaw());
        buffer.reset();
        return result == 1;
    }
Buffer to hold value to be signed or verified.
common/src/main/java/org/conscrypt/OpenSslSignatureSlhDsa.java