e14e4a7ee3
Replace them with asserts and better justify why each of the internal cases are not reachable. Also change the loop to count up to bits+1 so it is obvious there is no memory error. (The previous loop shape made more sense when ec_compute_wNAF would return a variable length schedule.) Change-Id: I9c7df6abac4290b7a3e545e3d4aa1462108e239e Reviewed-on: https://boringssl-review.googlesource.com/27705 Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
asm | ||
ec_key.c | ||
ec_montgomery.c | ||
ec_scalar_base_mult_tests.txt | ||
ec_test.cc | ||
ec.c | ||
felem.c | ||
internal.h | ||
make_ec_scalar_base_mult_tests.go | ||
make_p256-x86_64-table.go | ||
oct.c | ||
p224-64.c | ||
p256-x86_64_test.cc | ||
p256-x86_64_tests.txt | ||
p256-x86_64-table.h | ||
p256-x86_64.c | ||
p256-x86_64.h | ||
scalar.c | ||
simple.c | ||
util.c | ||
wnaf.c |