55PyDoc_STRVAR (py_blake2b_new__doc__ ,
66"blake2b(string=None, *, digest_size=_blake2b.blake2b.MAX_DIGEST_SIZE,\n"
77" key=None, salt=None, person=None, fanout=1, depth=1,\n"
8- " leaf_size=None , node_offset=None , node_depth=0, inner_size=0,\n"
8+ " leaf_size=0 , node_offset=0 , node_depth=0, inner_size=0,\n"
99" last_node=False)\n"
1010"--\n"
1111"\n"
@@ -14,34 +14,34 @@ PyDoc_STRVAR(py_blake2b_new__doc__,
1414static PyObject *
1515py_blake2b_new_impl (PyTypeObject * type , PyObject * data , int digest_size ,
1616 Py_buffer * key , Py_buffer * salt , Py_buffer * person ,
17- int fanout , int depth , PyObject * leaf_size_obj ,
18- PyObject * node_offset_obj , int node_depth ,
17+ int fanout , int depth , unsigned long leaf_size ,
18+ unsigned long long node_offset , int node_depth ,
1919 int inner_size , int last_node );
2020
2121static PyObject *
2222py_blake2b_new (PyTypeObject * type , PyObject * args , PyObject * kwargs )
2323{
2424 PyObject * return_value = NULL ;
2525 static const char * const _keywords [] = {"string" , "digest_size" , "key" , "salt" , "person" , "fanout" , "depth" , "leaf_size" , "node_offset" , "node_depth" , "inner_size" , "last_node" , NULL };
26- static _PyArg_Parser _parser = {"|O$iy*y*y*iiOOiip :blake2b" , _keywords , 0 };
26+ static _PyArg_Parser _parser = {"|O$iy*y*y*iiO&O&iip :blake2b" , _keywords , 0 };
2727 PyObject * data = NULL ;
2828 int digest_size = BLAKE2B_OUTBYTES ;
2929 Py_buffer key = {NULL , NULL };
3030 Py_buffer salt = {NULL , NULL };
3131 Py_buffer person = {NULL , NULL };
3232 int fanout = 1 ;
3333 int depth = 1 ;
34- PyObject * leaf_size_obj = NULL ;
35- PyObject * node_offset_obj = NULL ;
34+ unsigned long leaf_size = 0 ;
35+ unsigned long long node_offset = 0 ;
3636 int node_depth = 0 ;
3737 int inner_size = 0 ;
3838 int last_node = 0 ;
3939
4040 if (!_PyArg_ParseTupleAndKeywordsFast (args , kwargs , & _parser ,
41- & data , & digest_size , & key , & salt , & person , & fanout , & depth , & leaf_size_obj , & node_offset_obj , & node_depth , & inner_size , & last_node )) {
41+ & data , & digest_size , & key , & salt , & person , & fanout , & depth , _PyLong_UnsignedLong_Converter , & leaf_size , _PyLong_UnsignedLongLong_Converter , & node_offset , & node_depth , & inner_size , & last_node )) {
4242 goto exit ;
4343 }
44- return_value = py_blake2b_new_impl (type , data , digest_size , & key , & salt , & person , fanout , depth , leaf_size_obj , node_offset_obj , node_depth , inner_size , last_node );
44+ return_value = py_blake2b_new_impl (type , data , digest_size , & key , & salt , & person , fanout , depth , leaf_size , node_offset , node_depth , inner_size , last_node );
4545
4646exit :
4747 /* Cleanup for key */
@@ -122,4 +122,4 @@ _blake2b_blake2b_hexdigest(BLAKE2bObject *self, PyObject *Py_UNUSED(ignored))
122122{
123123 return _blake2b_blake2b_hexdigest_impl (self );
124124}
125- /*[clinic end generated code: output=535a54852c98e51c input=a9049054013a1b77]*/
125+ /*[clinic end generated code: output=afc5c45dff0a24f9 input=a9049054013a1b77]*/
0 commit comments