Skip to content

Commit c86687f

Browse files
committed
diff reduce
1 parent d0cfb7c commit c86687f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Modules/hmacmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ typedef Hacl_Streaming_HMAC_agile_state HACL_HMAC_state;
284284

285285
typedef struct HMACObject {
286286
HASHLIB_OBJECT_HEAD
287-
288287
// Hash function information
289288
PyObject *name; // rendered name (exact unicode object)
290289
HMAC_Hash_Kind kind; // can be used for runtime dispatch (must be known)

Modules/md5module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ static void
178178
_hacl_md5_state_update(Hacl_Hash_MD5_state_t *state,
179179
uint8_t *buf, Py_ssize_t len)
180180
{
181-
assert(len >= 0);
182181
/*
183182
* Note: we explicitly ignore the error code on the basis that it would
184183
* take more than 1 billion years to overflow the maximum admissible length
185184
* for MD5 (2^61 - 1).
186185
*/
186+
assert(len >= 0);
187187
#if PY_SSIZE_T_MAX > UINT32_MAX
188188
while (len > UINT32_MAX) {
189189
(void)Hacl_Hash_MD5_update(state, buf, UINT32_MAX);

0 commit comments

Comments
 (0)