<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, buffer, length):
 """ Add buffer into digest calculation """

        return lib.zdigest_update(self._as_parameter_, buffer, length)