def update(self, data):
        global buf_size, buf
        cipher_out_len = c_long(0)
        l = len(data)
        if l < buf_size:
            buf_size = l * 2
            buf = create_string_buffer(buf_size)
        libcrypto.EVP_CipherUpdate(self._ctx, byref(buf),
                                   byref(cipher_out_len), c_char_p(data), l)
        # buf is copied to a str object when we access buf.raw
        return buf.raw[:cipher_out_len.value]
dataset/ETHPy150Open ziggear/shadowsocks/shadowsocks/crypto/openssl.py/OpenSSLCrypto.update/swapped operands of `<`