summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Modules/sha1module.c
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:39 +0300
commite9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch)
tree64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/tools/python3/src/Modules/sha1module.c
parent2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Modules/sha1module.c')
-rw-r--r--contrib/tools/python3/src/Modules/sha1module.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/tools/python3/src/Modules/sha1module.c b/contrib/tools/python3/src/Modules/sha1module.c
index 614855f5061..44fe8ef7b35 100644
--- a/contrib/tools/python3/src/Modules/sha1module.c
+++ b/contrib/tools/python3/src/Modules/sha1module.c
@@ -74,7 +74,7 @@ typedef struct {
* The library is free for all purposes without any express
* guarantee it works.
*
- * Tom St Denis, [email protected], https://www.libtom.net
+ * Tom St Denis, [email protected], https://www.libtom.net
*/
/* rotate the hard way (platform optimizations could be done) */
@@ -269,7 +269,7 @@ sha1_done(struct sha1_state *sha1, unsigned char *out)
sha1->curlen = 0;
}
- /* pad up to 56 bytes of zeroes */
+ /* pad up to 56 bytes of zeroes */
while (sha1->curlen < 56) {
sha1->buf[sha1->curlen++] = (unsigned char)0;
}
@@ -446,10 +446,10 @@ static PyTypeObject SHA1type = {
0, /*tp_itemsize*/
/* methods */
SHA1_dealloc, /*tp_dealloc*/
- 0, /*tp_vectorcall_offset*/
+ 0, /*tp_vectorcall_offset*/
0, /*tp_getattr*/
0, /*tp_setattr*/
- 0, /*tp_as_async*/
+ 0, /*tp_as_async*/
0, /*tp_repr*/
0, /*tp_as_number*/
0, /*tp_as_sequence*/
@@ -480,15 +480,15 @@ static PyTypeObject SHA1type = {
_sha1.sha1
string: object(c_default="NULL") = b''
- *
- usedforsecurity: bool = True
+ *
+ usedforsecurity: bool = True
Return a new SHA1 hash object; optionally initialized with a string.
[clinic start generated code]*/
static PyObject *
-_sha1_sha1_impl(PyObject *module, PyObject *string, int usedforsecurity)
-/*[clinic end generated code: output=6f8b3af05126e18e input=bd54b68e2bf36a8a]*/
+_sha1_sha1_impl(PyObject *module, PyObject *string, int usedforsecurity)
+/*[clinic end generated code: output=6f8b3af05126e18e input=bd54b68e2bf36a8a]*/
{
SHA1object *new;
Py_buffer buf;
@@ -546,15 +546,15 @@ PyInit__sha1(void)
{
PyObject *m;
- Py_SET_TYPE(&SHA1type, &PyType_Type);
- if (PyType_Ready(&SHA1type) < 0) {
+ Py_SET_TYPE(&SHA1type, &PyType_Type);
+ if (PyType_Ready(&SHA1type) < 0) {
return NULL;
- }
+ }
m = PyModule_Create(&_sha1module);
- if (m == NULL) {
+ if (m == NULL) {
return NULL;
- }
+ }
Py_INCREF((PyObject *)&SHA1type);
PyModule_AddObject(m, "SHA1Type", (PyObject *)&SHA1type);