Skip to content

Commit add8ef5

Browse files
committed
Change blank lines in _sha3_shake_128_hexdigest_impl()
1 parent ef6c318 commit add8ef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/sha3module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ _sha3_shake_128_hexdigest_impl(SHA3object *self, Py_ssize_t length)
545545
if (length == 0) {
546546
return Py_GetConstant(Py_CONSTANT_EMPTY_STR);
547547
}
548-
549548
CHECK_HACL_UINT32_T_LENGTH(length);
549+
550550
uint8_t *buffer = PyMem_Malloc(length);
551551
if (buffer == NULL) {
552552
return PyErr_NoMemory();
@@ -555,6 +555,7 @@ _sha3_shake_128_hexdigest_impl(SHA3object *self, Py_ssize_t length)
555555
HASHLIB_ACQUIRE_LOCK(self);
556556
(void)Hacl_Hash_SHA3_squeeze(self->hash_state, buffer, (uint32_t)length);
557557
HASHLIB_RELEASE_LOCK(self);
558+
558559
PyObject *digest = _Py_strhex((const char *)buffer, length);
559560
PyMem_Free(buffer);
560561
return digest;

0 commit comments

Comments
 (0)