| 6045 | } |
| 6046 | |
| 6047 | static PyObject *Sha256_copy(PyObject *self_obj, PyObject *noargs) { |
| 6048 | sz_unused_(noargs); |
| 6049 | Sha256 *self = (Sha256 *)self_obj; |
| 6050 | Sha256 *copy = (Sha256 *)Sha256_new(&Sha256Type, NULL, NULL); |
| 6051 | if (!copy) return NULL; |
| 6052 | copy->state = self->state; |
| 6053 | return (PyObject *)copy; |
| 6054 | } |
| 6055 | |
| 6056 | static PyMethodDef Sha256_methods[] = { |
| 6057 | {"update", (PyCFunction)Sha256_update, METH_O, "Update with more data; returns self."}, |
nothing calls this directly
no test coverage detected
searching dependent graphs…