boringssl/crypto/bn
David Benjamin a6d81018f8 Consistently use RAND_bytes and check for failure.
RAND_pseudo_bytes just calls RAND_bytes now and only returns 0 or 1. Switch all
callers within the library call the new one and use the simpler failure check.
This fixes a few error checks that no longer work (< 0) and some missing ones.

Change-Id: Id51c79deec80075949f73fa1fbd7b76aac5570c6
Reviewed-on: https://boringssl-review.googlesource.com/2621
Reviewed-by: Adam Langley <agl@google.com>
2014-12-16 19:15:59 +00:00
..
asm crypto/bn/asm/rsaz-*.pl: allow spaces in Perl path name. 2014-11-05 21:26:15 +00:00
add.c Inital import. 2014-06-20 13:17:32 -07:00
bn_error.c Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
bn_test.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
bn.c Inital import. 2014-06-20 13:17:32 -07:00
CMakeLists.txt The asm files bn/asm/x86* weren't actually used. 2014-07-02 00:29:12 +00:00
cmp.c Inital import. 2014-06-20 13:17:32 -07:00
convert.c Don't compare signed vs. unsigned. 2014-10-01 02:17:38 +00:00
ctx.c Inital import. 2014-06-20 13:17:32 -07:00
div.c Check for invalid divisors in BN_div. 2014-06-20 13:17:33 -07:00
exponentiation.c Shush some dead assignments. 2014-11-06 01:34:33 +00:00
gcd.c Inital import. 2014-06-20 13:17:32 -07:00
generic.c Fix unused variables in bn/generic.c 2014-11-03 20:52:10 +00:00
internal.h Switch crypto/bn back to _umul128 on Windows clang. 2014-12-04 00:23:15 +00:00
kronecker.c Inital import. 2014-06-20 13:17:32 -07:00
montgomery.c bignum: allow concurrent BN_MONT_CTX_set_locked() 2014-06-20 13:17:40 -07:00
mul.c Make sure BN_sqr can never return a negative value. 2014-07-28 17:05:12 -07:00
prime.c Small prime generation. 2014-06-20 13:17:34 -07:00
random.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
rsaz_exp.c Support building with PNaCl. 2014-07-11 19:04:04 +00:00
rsaz_exp.h Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
shift.c Inital import. 2014-06-20 13:17:32 -07:00
sqrt.c Add function to recover RSA CRT params. 2014-06-20 13:17:35 -07:00