Lines Matching defs:new
577 /* The single module-level function: new() */
586 Return a new SHA-256 hash object; optionally initialized with a string.
601 SHAobject *new;
602 if ((new = newSHA256object(state)) == NULL) {
609 sha_init(new);
612 Py_DECREF(new);
619 sha_update(new, buf.buf, buf.len);
623 return (PyObject *)new;
633 Return a new SHA-224 hash object; optionally initialized with a string.
646 SHAobject *new;
647 if ((new = newSHA224object(state)) == NULL) {
654 sha224_init(new);
657 Py_DECREF(new);
664 sha_update(new, buf.buf, buf.len);
668 return (PyObject *)new;