def _clean_ctx(self):
        """
        Cleans up cipher ctx and deallocates it
        """
        try:
            if self.ctx is not None:
                self.__ctxcleanup(self.ctx)
                libcrypto.EVP_CIPHER_CTX_free(self.ctx)
                del self.ctx
        except AttributeError:
            pass
        self.cipher_finalized = True
def _clean_ctx ( self ) : try : if self . ctx is not None : self . __ctxcleanup ( self . ctx ) libcrypto . EVP_CIPHER_CTX_free ( self . ctx ) del self . ctx except AttributeError : pass self . cipher_finalized = True
Cleans up cipher ctx and deallocates it