File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -514,9 +514,9 @@ _sha3_shake_128_digest_impl(SHA3object *self, Py_ssize_t length)
514514 CHECK_HACL_UINT32_T_LENGTH (length );
515515 PyObject * digest = PyBytes_FromStringAndSize (NULL , length );
516516 uint8_t * buffer = (uint8_t * )PyBytes_AS_STRING (digest );
517- ENTER_HASHLIB (self );
517+ HASHLIB_ACQUIRE_LOCK (self );
518518 (void )Hacl_Hash_SHA3_squeeze (self -> hash_state , buffer , (uint32_t )length );
519- LEAVE_HASHLIB (self );
519+ HASHLIB_RELEASE_LOCK (self );
520520 return digest ;
521521}
522522
@@ -548,9 +548,9 @@ _sha3_shake_128_hexdigest_impl(SHA3object *self, Py_ssize_t length)
548548 return PyErr_NoMemory ();
549549 }
550550
551- ENTER_HASHLIB (self );
551+ HASHLIB_ACQUIRE_LOCK (self );
552552 (void )Hacl_Hash_SHA3_squeeze (self -> hash_state , buffer , (uint32_t )length );
553- LEAVE_HASHLIB (self );
553+ HASHLIB_RELEASE_LOCK (self );
554554 PyObject * digest = _Py_strhex ((const char * )buffer , length );
555555 PyMem_Free (buffer );
556556 return digest ;
You can’t perform that action at this time.
0 commit comments