@@ -406,10 +406,10 @@ SHA256Type_update_impl(SHA256object *self, PyObject *obj)
406406{
407407 Py_buffer buf ;
408408 GET_BUFFER_VIEW_OR_ERROUT (obj , & buf );
409- HASHLIB_EXTERNAL_INSTRUCTIONS_WITH_MUTEX (
409+ HASHLIB_EXTERNAL_INSTRUCTIONS_LOCKED (
410410 self , buf .len ,
411411 _hacl_sha2_state_update_256 (self -> state , buf .buf , buf .len )
412- )
412+ );
413413 PyBuffer_Release (& buf );
414414 Py_RETURN_NONE ;
415415}
@@ -429,10 +429,10 @@ SHA512Type_update_impl(SHA512object *self, PyObject *obj)
429429{
430430 Py_buffer buf ;
431431 GET_BUFFER_VIEW_OR_ERROUT (obj , & buf );
432- HASHLIB_EXTERNAL_INSTRUCTIONS_WITH_MUTEX (
432+ HASHLIB_EXTERNAL_INSTRUCTIONS_LOCKED (
433433 self , buf .len ,
434434 _hacl_sha2_state_update_512 (self -> state , buf .buf , buf .len )
435- )
435+ );
436436 PyBuffer_Release (& buf );
437437 Py_RETURN_NONE ;
438438}
@@ -614,10 +614,10 @@ _sha2_sha256_impl(PyObject *module, PyObject *data, int usedforsecurity,
614614 if (string ) {
615615 /* Do not use self->mutex here as this is the constructor
616616 * where it is not yet possible to have concurrent access. */
617- HASHLIB_EXTERNAL_INSTRUCTIONS (
617+ HASHLIB_EXTERNAL_INSTRUCTIONS_UNLOCKED (
618618 buf .len ,
619619 _hacl_sha2_state_update_256 (new -> state , buf .buf , buf .len )
620- )
620+ );
621621 PyBuffer_Release (& buf );
622622 }
623623
@@ -672,10 +672,10 @@ _sha2_sha224_impl(PyObject *module, PyObject *data, int usedforsecurity,
672672 if (string ) {
673673 /* Do not use self->mutex here as this is the constructor
674674 * where it is not yet possible to have concurrent access. */
675- HASHLIB_EXTERNAL_INSTRUCTIONS (
675+ HASHLIB_EXTERNAL_INSTRUCTIONS_UNLOCKED (
676676 buf .len ,
677677 _hacl_sha2_state_update_256 (new -> state , buf .buf , buf .len )
678- )
678+ );
679679 PyBuffer_Release (& buf );
680680 }
681681
@@ -731,10 +731,10 @@ _sha2_sha512_impl(PyObject *module, PyObject *data, int usedforsecurity,
731731 if (string ) {
732732 /* Do not use self->mutex here as this is the constructor
733733 * where it is not yet possible to have concurrent access. */
734- HASHLIB_EXTERNAL_INSTRUCTIONS (
734+ HASHLIB_EXTERNAL_INSTRUCTIONS_UNLOCKED (
735735 buf .len ,
736736 _hacl_sha2_state_update_512 (new -> state , buf .buf , buf .len )
737- )
737+ );
738738 PyBuffer_Release (& buf );
739739 }
740740
@@ -790,10 +790,10 @@ _sha2_sha384_impl(PyObject *module, PyObject *data, int usedforsecurity,
790790 if (string ) {
791791 /* Do not use self->mutex here as this is the constructor
792792 * where it is not yet possible to have concurrent access. */
793- HASHLIB_EXTERNAL_INSTRUCTIONS (
793+ HASHLIB_EXTERNAL_INSTRUCTIONS_UNLOCKED (
794794 buf .len ,
795795 _hacl_sha2_state_update_512 (new -> state , buf .buf , buf .len )
796- )
796+ );
797797 PyBuffer_Release (& buf );
798798 }
799799
0 commit comments