Even though C specification explicitly says that constant type "stretches"
authorAndy Polyakov <appro@openssl.org>
Sun, 25 Jan 2004 10:53:43 +0000 (10:53 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 25 Jan 2004 10:53:43 +0000 (10:53 +0000)
commit27b2b78f9053dde311378689322903b65ed2e691
treec9fa2f9384c10048f00d00c5d2fd128b5495bbd6
parent3a160f1dc6c312495d65fdfabd8f86c0071975c2
Even though C specification explicitly says that constant type "stretches"
automatically to accomodate the value, some compilers fail to do so. Most
notably 0x0123456789ABCDEF should come out as long long in 32-bit context,
but HP compiler truncates it to 32-bit value. Which in turn breaks GF(2^m)
arithmetics in hpux-parisc2-cc build. Therefore this fix...
crypto/bn/bn_gf2m.c
crypto/bn/bn_nist.c