private void checkSize(final int len) {
      if (len > MESSAGE_LENGTH_BYTES - bufferPos) {
        throw new IllegalArgumentException(
            "Attempting to update buffer with "
                + len
                + " byte(s) but there is "
                + (MESSAGE_LENGTH_BYTES - bufferPos)
                + " byte(s) left to fill");
      }
    }
update the message digest with a block of bytes.

@param in the byte array containing the data.
@param offset the offset into the byte array where the data starts.
@param len the length of the data.
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/Blake2bfMessageDigest.java