mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
switch idea invmod too big to subtraction
This commit is contained in:
@ -106,7 +106,8 @@ static INLINE word16 idea_invmod(word16 x)
|
||||
d += IDEA_MODULO;
|
||||
|
||||
/* d must be < IDEA_MODULO */
|
||||
d %= IDEA_MODULO;
|
||||
while (d >= (int)IDEA_MODULO)
|
||||
d -= IDEA_MODULO;
|
||||
|
||||
return (word16)(d & IDEA_MASK);
|
||||
}
|
||||
|
Reference in New Issue
Block a user