forked from wolfSSL/wolfssl
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