Fix BN_mod_word bug
authorMatt Caswell <matt@openssl.org>
Tue, 31 May 2016 10:28:14 +0000 (11:28 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 7 Jun 2016 20:55:31 +0000 (21:55 +0100)
commit37258dadaa9e36db4b96a3aa54aa6c67136160cc
treeda6841d1eab12fba5640d5e060ffad715b7d7c48
parent4692340e31985681f95008d409483d5761b6c213
Fix BN_mod_word bug

On systems where we do not have BN_ULLONG (e.g. typically 64 bit systems)
then BN_mod_word() can return incorrect results if the supplied modulus is
too big.

RT#4501

Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/bn/bn_word.c