Lines Matching defs:new
644 /* The single module-level function: new() */
653 Return a new SHA-512 hash object; optionally initialized with a string.
660 SHAobject *new;
668 if ((new = newSHA512object(st)) == NULL) {
674 sha512_init(new);
677 Py_DECREF(new);
683 sha512_update(new, buf.buf, buf.len);
687 return (PyObject *)new;
697 Return a new SHA-384 hash object; optionally initialized with a string.
704 SHAobject *new;
712 if ((new = newSHA384object(st)) == NULL) {
718 sha384_init(new);
721 Py_DECREF(new);
727 sha512_update(new, buf.buf, buf.len);
731 return (PyObject *)new;