Skip to content

Commit 6511057

Browse files
committed
removed check for n > 0x7fffffff
1 parent d6c8e7b commit 6511057

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/hpke.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int I2OSP(int n, int w, byte* out)
107107

108108
/* if width is less than int max check that n is less than w bytes max */
109109
/* if width is greater than int max check that n is less than int max */
110-
if ((w < 4 && n > ((1 << (w * 8)) - 1)) || (w >= 4 && n > 0x7fffffff)) {
110+
if ((w < 4 && n > ((1 << (w * 8)) - 1))) {
111111
return MP_VAL;
112112
}
113113

0 commit comments

Comments
 (0)