File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,6 @@ typedef Hacl_Streaming_HMAC_agile_state HACL_HMAC_state;
284284
285285typedef 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)
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments