* grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
divisions.
This commit is contained in:
parent
b9563c9451
commit
2dc1eb6cbf
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
|
||||||
|
divisions.
|
||||||
|
|
||||||
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
|
* grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
|
||||||
|
|
|
@ -72,8 +72,8 @@ mul_inv( u16 x )
|
||||||
|
|
||||||
if( x < 2 )
|
if( x < 2 )
|
||||||
return x;
|
return x;
|
||||||
t1 = 0x10001L / x;
|
t1 = 0x10001UL / x;
|
||||||
y = 0x10001L % x;
|
y = 0x10001UL % x;
|
||||||
if( y == 1 )
|
if( y == 1 )
|
||||||
return (1-t1) & 0xffff;
|
return (1-t1) & 0xffff;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue