@@ -377,38 +377,10 @@ Return a new whirlpool object. If arg is present, the method call update(arg)\n\
377377is made." );
378378
379379
380- #if PY_MAJOR_VERSION < 3
381- /* Function is deprecated and only available in Python 2.7 */
382- static PyObject *
383- whirlpool_hash (PyObject * self , PyObject * args ) {
384- struct NESSIEstruct w ;
385- unsigned char digest [DIGESTBYTES ];
386- Py_ssize_t data_size ;
387- unsigned char * data ;
388-
389- if (!PyArg_ParseTuple (args , "s#" , & data , & data_size ))
390- return NULL ;
391-
392- NESSIEinit (& w );
393- NESSIEadd (data , data_size * 8 , & w );
394- NESSIEfinalize (& w , digest );
395-
396- return Py_BuildValue ("s#" , digest , DIGESTBYTES );
397- }
398-
399- PyDoc_STRVAR (hash_doc ,
400- "Returns a hash of argument using the whirlpool algorithm.\n\
401- This function is deprecated. Please use new() and hexdigest()." );
402- #endif
403-
404-
405380/* List of functions exported by this module */
406381
407382static struct PyMethodDef whirlpool_functions [] = {
408383 {"new" , (PyCFunction )whirlpool_new , METH_VARARGS , new_doc },
409- #if PY_MAJOR_VERSION < 3
410- {"hash" , (PyCFunction )whirlpool_hash , METH_VARARGS , hash_doc },
411- #endif
412384 {NULL , NULL } /* sentinel */
413385};
414386
0 commit comments