<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def padding(self, padding=True):
 """ Sets padding mode of the cipher """

        padding_flag = 1 if padding else 0
        libcrypto.EVP_CIPHER_CTX_set_padding(self.ctx, padding_flag)