summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornagendra modadugu <ngm@google.com>2016-08-25 15:18:33 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-02 15:12:07 -0700
commit6b7f571900333c34c786d40ab03136775a68d7eb (patch)
tree34d433e86d32b39eedcc0eb62bf01c889de57bc4 /test
parent5acf2c1e6fa310e527391587a4bca9f8d6effc46 (diff)
downloadchrome-ec-6b7f571900333c34c786d40ab03136775a68d7eb.tar.gz
CR50: bn_modinv: correctly handle even inputs
If both e, and MOD are even, then no modular inverse exists. This change adds handling for this set of inputs. Adding this change for completeness (there are no dcrypto library call paths that generate both e and N as even). BRANCH=none BUG=chrome-os-partner:47524 TEST=bn_test passes Change-Id: Ide64f980501175e9b6078efff92086d12bc1ae2d Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/376180 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Marius Schilder <mschilder@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions