45573cc04d
Towards an eventual goal of opaquifying BoringSSL structs, we want our consumers -- in this case, Android's libcore -- to not directly manipulate BigNums; and it would be convenient for them if we would perform the appropriate gymnastics to interpret little-endian byte streams. It also seems a priori a bit strange to have only big-endian varieties of BN byte-conversions. This CL provides little-endian equivalents of BN_bn2bin_padded and BN_bin2bn. BUG=97 Change-Id: I0e92483286def86d9bd71a46d6a967a3be50f80b Reviewed-on: https://boringssl-review.googlesource.com/12641 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> |
||
---|---|---|
.. | ||
asm | ||
add.c | ||
bn_asn1.c | ||
bn_test.cc | ||
bn_tests.txt | ||
bn.c | ||
check_bn_tests.go | ||
CMakeLists.txt | ||
cmp.c | ||
convert.c | ||
ctx.c | ||
div.c | ||
exponentiation.c | ||
gcd.c | ||
generic.c | ||
internal.h | ||
kronecker.c | ||
montgomery_inv.c | ||
montgomery.c | ||
mul.c | ||
prime.c | ||
random.c | ||
rsaz_exp.c | ||
rsaz_exp.h | ||
shift.c | ||
sqrt.c |