File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -906,20 +906,18 @@ static PyObject *
906906py_blake2b_get_name (PyObject * op , void * Py_UNUSED (closure ))
907907{
908908 Blake2Object * self = _Blake2Object_CAST (op );
909- return PyUnicode_FromString (is_blake2b (self -> impl ) ? "blake2b" : "blake2s" );
909+ return PyUnicode_FromString (BLAKE2_IMPLNAME (self ) );
910910}
911911
912912
913-
914913static PyObject *
915914py_blake2b_get_block_size (PyObject * op , void * Py_UNUSED (closure ))
916915{
917916 Blake2Object * self = _Blake2Object_CAST (op );
918- return PyLong_FromLong (is_blake2b (self -> impl ) ? HACL_HASH_BLAKE2B_BLOCK_BYTES : HACL_HASH_BLAKE2S_BLOCK_BYTES );
917+ return PyLong_FromLong (GET_BLAKE2_CONST (self , BLOCK_BYTES ) );
919918}
920919
921920
922-
923921static PyObject *
924922py_blake2b_get_digest_size (PyObject * op , void * Py_UNUSED (closure ))
925923{
You can’t perform that action at this time.
0 commit comments