mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Change the builtin hash algorithms' names to lower case names
as promised by hashlib's documentation.
This commit is contained in:
parent
f0e521036c
commit
37d5cebb48
6 changed files with 11 additions and 8 deletions
|
@ -501,9 +501,9 @@ static PyObject *
|
|||
SHA256_get_name(PyObject *self, void *closure)
|
||||
{
|
||||
if (((SHAobject *)self)->digestsize == 32)
|
||||
return PyUnicode_FromStringAndSize("SHA256", 6);
|
||||
return PyUnicode_FromStringAndSize("sha256", 6);
|
||||
else
|
||||
return PyUnicode_FromStringAndSize("SHA224", 6);
|
||||
return PyUnicode_FromStringAndSize("sha224", 6);
|
||||
}
|
||||
|
||||
static PyGetSetDef SHA_getseters[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue