Fix integer overflow in sbox

BUG=32915
TEST= unit test included

Review URL: http://codereview.chromium.org/553061

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36923 0039d316-1c4b-4281-b951-d872f2087c98