def decrypt(cls, data, key): clen = cls.align_size(len(data)) ckey = c_buffer(key) cin = c_buffer(data) cout = c_buffer(clen) cls.LIB.decrypt(cin, clen, ckey, cout) return cout.raw