mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>