static PyObject * _cffi_f_Cryptography_constant_time_bytes_eq(PyObject *self, PyObject *args) { uint8_t * x0; size_t x1; uint8_t * x2; size_t x3; Py_ssize_t datasize; uint8_t result; PyObject *arg0; PyObject *arg1; PyObject *arg2; PyObject *arg3; if (!PyArg_ParseTuple(args, "OOOO:Cryptography_constant_time_bytes_eq", &arg0, &arg1, &arg2, &arg3)) return NULL; datasize = _cffi_prepare_pointer_call_argument( _cffi_type(0), arg0, (char **)&x0); if (datasize != 0) { if (datasize < 0) return NULL; x0 = alloca((size_t)datasize); memset((void *)x0, 0, (size_t)datasize); if (_cffi_convert_array_from_object((char *)x0, _cffi_type(0), arg0) < 0) return NULL; } x1 = _cffi_to_c_int(arg1, size_t); if (x1 == (size_t)-1 && PyErr_Occurred()) return NULL; datasize = _cffi_prepare_pointer_call_argument( _cffi_type(0), arg2, (char **)&x2); if (datasize != 0) { if (datasize < 0) return NULL; x2 = alloca((size_t)datasize); memset((void *)x2, 0, (size_t)datasize); if (_cffi_convert_array_from_object((char *)x2, _cffi_type(0), arg2) < 0) return NULL; } x3 = _cffi_to_c_int(arg3, size_t); if (x3 == (size_t)-1 && PyErr_Occurred()) return NULL; Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { result = Cryptography_constant_time_bytes_eq(x0, x1, x2, x3); } _cffi_save_errno(); Py_END_ALLOW_THREADS (void)self; /* unused */ return _cffi_from_c_int(result, uint8_t); }
static PyObject * _cffi_f_fuzzy_update(PyObject *self, PyObject *args) { struct fuzzy_state * x0; unsigned char const * x1; size_t x2; Py_ssize_t datasize; int result; PyObject *arg0; PyObject *arg1; PyObject *arg2; if (!PyArg_ParseTuple(args, "OOO:fuzzy_update", &arg0, &arg1, &arg2)) return NULL; datasize = _cffi_prepare_pointer_call_argument( _cffi_type(3), arg0, (char **)&x0); if (datasize != 0) { if (datasize < 0) return NULL; x0 = alloca(datasize); memset((void *)x0, 0, datasize); if (_cffi_convert_array_from_object((char *)x0, _cffi_type(3), arg0) < 0) return NULL; } datasize = _cffi_prepare_pointer_call_argument( _cffi_type(5), arg1, (char **)&x1); if (datasize != 0) { if (datasize < 0) return NULL; x1 = alloca(datasize); memset((void *)x1, 0, datasize); if (_cffi_convert_array_from_object((char *)x1, _cffi_type(5), arg1) < 0) return NULL; } x2 = _cffi_to_c_int(arg2, size_t); if (x2 == (size_t)-1 && PyErr_Occurred()) return NULL; Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { result = fuzzy_update(x0, x1, x2); } _cffi_save_errno(); Py_END_ALLOW_THREADS return _cffi_from_c_int(result, int); }
static PyObject * _cffi_f_Free(PyObject *self, PyObject *arg0) { size_t x0; x0 = _cffi_to_c_int(arg0, size_t); if (x0 == (size_t)-1 && PyErr_Occurred()) return NULL; Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { Free(x0); } _cffi_save_errno(); Py_END_ALLOW_THREADS (void)self; /* unused */ Py_INCREF(Py_None); return Py_None; }
static PyObject * _cffi_f_Cryptography_check_pkcs7_padding(PyObject *self, PyObject *args) { uint8_t const * x0; uint8_t x1; Py_ssize_t datasize; uint8_t result; PyObject *arg0; PyObject *arg1; if (!PyArg_ParseTuple(args, "OO:Cryptography_check_pkcs7_padding", &arg0, &arg1)) return NULL; datasize = _cffi_prepare_pointer_call_argument( _cffi_type(0), arg0, (char **)&x0); if (datasize != 0) { if (datasize < 0) return NULL; x0 = alloca((size_t)datasize); memset((void *)x0, 0, (size_t)datasize); if (_cffi_convert_array_from_object((char *)x0, _cffi_type(0), arg0) < 0) return NULL; } x1 = _cffi_to_c_int(arg1, uint8_t); if (x1 == (uint8_t)-1 && PyErr_Occurred()) return NULL; Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { result = Cryptography_check_pkcs7_padding(x0, x1); } _cffi_save_errno(); Py_END_ALLOW_THREADS (void)self; /* unused */ return _cffi_from_c_int(result, uint8_t); }