def next(self, data, final = False, to_buffer = False):
if final:<EOL><INDENT>self.flags = pyhsm.defines.YSM_HMAC_SHA1_FINAL<EOL><DEDENT>else:<EOL><INDENT>self.flags = <NUM_LIT><EOL><DEDENT>if to_buffer:<EOL><INDENT>self.flags |= pyhsm.defines.YSM_HMAC_SHA1_TO_BUFFER<EOL><DEDENT>self.payload = _raw_pack(self.key_handle, self.flags, data)<EOL>self.final = final<EOL>return self<EOL>
Add more input to the HMAC SHA1.