* grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed

divisions.
This commit is contained in:
Vladimir Serbinenko 2013-11-08 18:10:07 +01:00
parent b9563c9451
commit 2dc1eb6cbf
2 changed files with 7 additions and 2 deletions

View File

@ -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>
* grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):

View File

@ -72,8 +72,8 @@ mul_inv( u16 x )
if( x < 2 )
return x;
t1 = 0x10001L / x;
y = 0x10001L % x;
t1 = 0x10001UL / x;
y = 0x10001UL % x;
if( y == 1 )
return (1-t1) & 0xffff;