def encrypt(self, data, nounce=None):
if nounce is None:<EOL><INDENT>nounce = self._out_counter.to_bytes(length=<NUM_LIT:8>, byteorder='<STR_LIT>')<EOL>self._out_counter += <NUM_LIT:1><EOL><DEDENT>return self._enc_out.seal(b'<STR_LIT>' + nounce, data, bytes())<EOL>
Encrypt data with counter or specified nounce.