@@ -1342,6 +1342,7 @@ _hashlib_HASH(_hashlibstate *state, const char *digestname, PyObject *data_obj,
13421342/* The module-level function: new() */
13431343
13441344/*[clinic input]
1345+ @text_signature "($module, /, name, data=b'', *, usedforsecurity=True)"
13451346_hashlib.new as _hashlib_HASH_new
13461347
13471348 name: str
@@ -1361,7 +1362,7 @@ The MD5 and SHA1 algorithms are always supported.
13611362static PyObject *
13621363_hashlib_HASH_new_impl (PyObject * module , const char * name , PyObject * data ,
13631364 int usedforsecurity , PyObject * string )
1364- /*[clinic end generated code: output=b905aaf9840c1bbd input=c34af6c6e696d44e ]*/
1365+ /*[clinic end generated code: output=b905aaf9840c1bbd input=8f9d08a66387e4d8 ]*/
13651366{
13661367 PyObject * data_obj ;
13671368 if (_Py_hashlib_data_argument (& data_obj , data , string ) < 0 ) {
@@ -1373,6 +1374,7 @@ _hashlib_HASH_new_impl(PyObject *module, const char *name, PyObject *data,
13731374
13741375
13751376/*[clinic input]
1377+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
13761378_hashlib.openssl_md5
13771379
13781380 data: object(c_default="NULL") = b''
@@ -1387,13 +1389,14 @@ Returns a md5 hash object; optionally initialized with a string
13871389static PyObject *
13881390_hashlib_openssl_md5_impl (PyObject * module , PyObject * data ,
13891391 int usedforsecurity , PyObject * string )
1390- /*[clinic end generated code: output=ca8cf184d90f7432 input=e7c0adbd6a867db1 ]*/
1392+ /*[clinic end generated code: output=ca8cf184d90f7432 input=1242105b6a5176d6 ]*/
13911393{
13921394 CALL_HASHLIB_NEW (module , Py_hash_md5 , data , string , usedforsecurity );
13931395}
13941396
13951397
13961398/*[clinic input]
1399+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
13971400_hashlib.openssl_sha1
13981401
13991402 data: object(c_default="NULL") = b''
@@ -1408,13 +1411,14 @@ Returns a sha1 hash object; optionally initialized with a string
14081411static PyObject *
14091412_hashlib_openssl_sha1_impl (PyObject * module , PyObject * data ,
14101413 int usedforsecurity , PyObject * string )
1411- /*[clinic end generated code: output=1736fb7b310d64be input=f7e5bb1711e952d8 ]*/
1414+ /*[clinic end generated code: output=1736fb7b310d64be input=eca1e1e061f67ba8 ]*/
14121415{
14131416 CALL_HASHLIB_NEW (module , Py_hash_sha1 , data , string , usedforsecurity );
14141417}
14151418
14161419
14171420/*[clinic input]
1421+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
14181422_hashlib.openssl_sha224
14191423
14201424 data: object(c_default="NULL") = b''
@@ -1429,13 +1433,14 @@ Returns a sha224 hash object; optionally initialized with a string
14291433static PyObject *
14301434_hashlib_openssl_sha224_impl (PyObject * module , PyObject * data ,
14311435 int usedforsecurity , PyObject * string )
1432- /*[clinic end generated code: output=0d6ff57be5e5c140 input=3820fff7ed3a53b8 ]*/
1436+ /*[clinic end generated code: output=0d6ff57be5e5c140 input=c6bb80a6e9b8e982 ]*/
14331437{
14341438 CALL_HASHLIB_NEW (module , Py_hash_sha224 , data , string , usedforsecurity );
14351439}
14361440
14371441
14381442/*[clinic input]
1443+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
14391444_hashlib.openssl_sha256
14401445
14411446 data: object(c_default="NULL") = b''
@@ -1450,13 +1455,14 @@ Returns a sha256 hash object; optionally initialized with a string
14501455static PyObject *
14511456_hashlib_openssl_sha256_impl (PyObject * module , PyObject * data ,
14521457 int usedforsecurity , PyObject * string )
1453- /*[clinic end generated code: output=412ea7111555b6e7 input=9a2f115cf1f7e0eb ]*/
1458+ /*[clinic end generated code: output=412ea7111555b6e7 input=2f0e3f6ed9e05e89 ]*/
14541459{
14551460 CALL_HASHLIB_NEW (module , Py_hash_sha256 , data , string , usedforsecurity );
14561461}
14571462
14581463
14591464/*[clinic input]
1465+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
14601466_hashlib.openssl_sha384
14611467
14621468 data: object(c_default="NULL") = b''
@@ -1471,13 +1477,14 @@ Returns a sha384 hash object; optionally initialized with a string
14711477static PyObject *
14721478_hashlib_openssl_sha384_impl (PyObject * module , PyObject * data ,
14731479 int usedforsecurity , PyObject * string )
1474- /*[clinic end generated code: output=2e0dc395b59ed726 input=1ea48f6f01e77cfb ]*/
1480+ /*[clinic end generated code: output=2e0dc395b59ed726 input=5691ef74159f0bbc ]*/
14751481{
14761482 CALL_HASHLIB_NEW (module , Py_hash_sha384 , data , string , usedforsecurity );
14771483}
14781484
14791485
14801486/*[clinic input]
1487+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
14811488_hashlib.openssl_sha512
14821489
14831490 data: object(c_default="NULL") = b''
@@ -1492,7 +1499,7 @@ Returns a sha512 hash object; optionally initialized with a string
14921499static PyObject *
14931500_hashlib_openssl_sha512_impl (PyObject * module , PyObject * data ,
14941501 int usedforsecurity , PyObject * string )
1495- /*[clinic end generated code: output=4bdd760388dbfc0f input=3cf56903e07d1f5c ]*/
1502+ /*[clinic end generated code: output=4bdd760388dbfc0f input=0b97ed23dc54ab56 ]*/
14961503{
14971504 CALL_HASHLIB_NEW (module , Py_hash_sha512 , data , string , usedforsecurity );
14981505}
@@ -1501,6 +1508,7 @@ _hashlib_openssl_sha512_impl(PyObject *module, PyObject *data,
15011508#ifdef PY_OPENSSL_HAS_SHA3
15021509
15031510/*[clinic input]
1511+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
15041512_hashlib.openssl_sha3_224
15051513
15061514 data: object(c_default="NULL") = b''
@@ -1515,12 +1523,13 @@ Returns a sha3-224 hash object; optionally initialized with a string
15151523static PyObject *
15161524_hashlib_openssl_sha3_224_impl (PyObject * module , PyObject * data ,
15171525 int usedforsecurity , PyObject * string )
1518- /*[clinic end generated code: output=6d8dc2a924f3ba35 input=7f14f16a9f6a3158 ]*/
1526+ /*[clinic end generated code: output=6d8dc2a924f3ba35 input=7107e36646dc3a8e ]*/
15191527{
15201528 CALL_HASHLIB_NEW (module , Py_hash_sha3_224 , data , string , usedforsecurity );
15211529}
15221530
15231531/*[clinic input]
1532+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
15241533_hashlib.openssl_sha3_256
15251534
15261535 data: object(c_default="NULL") = b''
@@ -1535,12 +1544,13 @@ Returns a sha3-256 hash object; optionally initialized with a string
15351544static PyObject *
15361545_hashlib_openssl_sha3_256_impl (PyObject * module , PyObject * data ,
15371546 int usedforsecurity , PyObject * string )
1538- /*[clinic end generated code: output=9e520f537b3a4622 input=7987150939d5e352 ]*/
1547+ /*[clinic end generated code: output=9e520f537b3a4622 input=a0de473419ff4593 ]*/
15391548{
15401549 CALL_HASHLIB_NEW (module , Py_hash_sha3_256 , data , string , usedforsecurity );
15411550}
15421551
15431552/*[clinic input]
1553+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
15441554_hashlib.openssl_sha3_384
15451555
15461556 data: object(c_default="NULL") = b''
@@ -1555,12 +1565,13 @@ Returns a sha3-384 hash object; optionally initialized with a string
15551565static PyObject *
15561566_hashlib_openssl_sha3_384_impl (PyObject * module , PyObject * data ,
15571567 int usedforsecurity , PyObject * string )
1558- /*[clinic end generated code: output=d239ba0463fd6138 input=fc943401f67e3b81 ]*/
1568+ /*[clinic end generated code: output=d239ba0463fd6138 input=1c9c36f4b0fb859e ]*/
15591569{
15601570 CALL_HASHLIB_NEW (module , Py_hash_sha3_384 , data , string , usedforsecurity );
15611571}
15621572
15631573/*[clinic input]
1574+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
15641575_hashlib.openssl_sha3_512
15651576
15661577 data: object(c_default="NULL") = b''
@@ -1575,7 +1586,7 @@ Returns a sha3-512 hash object; optionally initialized with a string
15751586static PyObject *
15761587_hashlib_openssl_sha3_512_impl (PyObject * module , PyObject * data ,
15771588 int usedforsecurity , PyObject * string )
1578- /*[clinic end generated code: output=17662f21038c2278 input=6601ddd2c6c1516d ]*/
1589+ /*[clinic end generated code: output=17662f21038c2278 input=eb09a63a3d478630 ]*/
15791590{
15801591 CALL_HASHLIB_NEW (module , Py_hash_sha3_512 , data , string , usedforsecurity );
15811592}
@@ -1584,6 +1595,7 @@ _hashlib_openssl_sha3_512_impl(PyObject *module, PyObject *data,
15841595#ifdef PY_OPENSSL_HAS_SHAKE
15851596/*[clinic input]
15861597@permit_long_summary
1598+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
15871599_hashlib.openssl_shake_128
15881600
15891601 data: object(c_default="NULL") = b''
@@ -1598,13 +1610,14 @@ Returns a shake-128 variable hash object; optionally initialized with a string
15981610static PyObject *
15991611_hashlib_openssl_shake_128_impl (PyObject * module , PyObject * data ,
16001612 int usedforsecurity , PyObject * string )
1601- /*[clinic end generated code: output=4e6afed8d18980ad input=0d2803af1158b23c ]*/
1613+ /*[clinic end generated code: output=4e6afed8d18980ad input=ef04b0f787e1f5f0 ]*/
16021614{
16031615 CALL_HASHLIB_NEW (module , Py_hash_shake_128 , data , string , usedforsecurity );
16041616}
16051617
16061618/*[clinic input]
16071619@permit_long_summary
1620+ @text_signature "($module, /, data=b'', *, usedforsecurity=True)"
16081621_hashlib.openssl_shake_256
16091622
16101623 data: object(c_default="NULL") = b''
@@ -1619,7 +1632,7 @@ Returns a shake-256 variable hash object; optionally initialized with a string
16191632static PyObject *
16201633_hashlib_openssl_shake_256_impl (PyObject * module , PyObject * data ,
16211634 int usedforsecurity , PyObject * string )
1622- /*[clinic end generated code: output=62481bce4a77d16c input=f27b98d9c749f55d ]*/
1635+ /*[clinic end generated code: output=62481bce4a77d16c input=38a2429ec6143f98 ]*/
16231636{
16241637 CALL_HASHLIB_NEW (module , Py_hash_shake_256 , data , string , usedforsecurity );
16251638}
0 commit comments