boringssl/crypto
Rob Sloan 45573cc04d Add Little-endian BIGNUM conversions
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>
2017-01-06 18:20:09 +00:00
..
aes
asn1
base64
bio Don't chain to next_bio for buffer BIO BIO_[w]pending. 2016-12-21 23:08:22 +00:00
bn Add Little-endian BIGNUM conversions 2017-01-06 18:20:09 +00:00
buf
bytestring
chacha
cipher
cmac
conf
curve25519
des
dh
digest
dsa
ec
ecdh
ecdsa
engine
err
evp
hkdf
hmac
lhash
md4
md5
modes
obj
pem
perlasm
pkcs8
poly1305
pool
rand
rc4
rsa
sha
stack
test
x509
x509v3
CMakeLists.txt
constant_time_test.cc
cpu-aarch64-linux.c
cpu-arm-linux.c
cpu-arm.c
cpu-intel.c
cpu-ppc64le.c
crypto.c
ex_data.c
internal.h
mem.c
refcount_c11.c
refcount_lock.c
refcount_test.cc
thread_none.c
thread_pthread.c
thread_test.c
thread_win.c
thread.c
time_support.c