boringssl/crypto/asn1
David Benjamin c85573ccd8 Ensure BN_asc2bn, BN_dec2bn, and BN_hex2bn never give -0.
See upstream's a0eed48d37a4b7beea0c966caf09ad46f4a92a44. Rather than import
that, we should just ensure neg + zero isn't a possible state.

Add some tests for asc2bn and dec2bn while we're here. Also fix a bug with
dec2bn where it doesn't actually ignore trailing data as it's supposed to.

Change-Id: I2385b67b740e57020c75a247bee254085ab7ce15
Reviewed-on: https://boringssl-review.googlesource.com/4484
Reviewed-by: Adam Langley <agl@google.com>
2015-04-23 20:53:24 +00:00
..
a_bitstr.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
a_bool.c Inital import. 2014-06-20 13:17:32 -07:00
a_bytes.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
a_d2i_fp.c Error codes are uint32_t, not unsigned long. 2015-03-13 19:41:42 +00:00
a_dup.c Inital import. 2014-06-20 13:17:32 -07:00
a_enum.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
a_gentm.c Eliminate unnecessary includes from low-level crypto modules. 2015-04-13 20:49:18 +00:00
a_i2d_fp.c Inital import. 2014-06-20 13:17:32 -07:00
a_int.c Ensure BN_asc2bn, BN_dec2bn, and BN_hex2bn never give -0. 2015-04-23 20:53:24 +00:00
a_mbstr.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
a_object.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
a_octet.c Inital import. 2014-06-20 13:17:32 -07:00
a_print.c Remove CHARSET_EBCDIC 2014-07-07 19:30:35 +00:00
a_strnid.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
a_time.c Eliminate unnecessary includes from low-level crypto modules. 2015-04-13 20:49:18 +00:00
a_type.c Fix ASN1_TYPE_cmp 2015-03-19 19:48:41 +00:00
a_utctm.c Eliminate unnecessary includes from low-level crypto modules. 2015-04-13 20:49:18 +00:00
a_utf8.c Inital import. 2014-06-20 13:17:32 -07:00
asn1_lib.c Prune away (almost) all of asn1_mac.h 2015-04-08 20:42:57 +00:00
asn1_locl.h Move the X509_NAME typedef into x509.h. 2014-10-28 22:38:38 +00:00
asn1_par.c Fix wrong numbers being passed as string lengths 2015-03-19 11:07:45 +00:00
asn_pack.c Remove some dead code. 2014-08-19 19:00:49 +00:00
bio_asn1.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
bio_ndef.c Fix two unchecked mallocs in crypto/asn1. 2015-03-10 02:31:29 +00:00
charmap.pl Tag a number of globals as const. 2015-01-14 21:53:00 +00:00
CMakeLists.txt Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
f_enum.c Fix a2i_ASN1_* leak on failure. 2014-11-06 01:29:59 +00:00
f_int.c Fix a2i_ASN1_* leak on failure. 2014-11-06 01:29:59 +00:00
f_string.c Fix a2i_ASN1_* leak on failure. 2014-11-06 01:29:59 +00:00
t_bitst.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
t_pkey.c Inital import. 2014-06-20 13:17:32 -07:00
tasn_dec.c Enable MSVC warning C4701, use of potentially uninitialized variable. 2015-04-13 20:32:26 +00:00
tasn_enc.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
tasn_fre.c Inital import. 2014-06-20 13:17:32 -07:00
tasn_new.c ASN1_primitive_new NULL param handling 2015-03-19 11:11:04 +00:00
tasn_prn.c ASN.1 print fix. 2015-03-19 11:32:45 +00:00
tasn_typ.c Allocate string types directly. 2015-03-19 11:47:52 +00:00
tasn_utl.c Eliminate unnecessary includes from low-level crypto modules. 2015-04-13 20:49:18 +00:00
x_bignum.c Tag a number of globals as const. 2015-01-14 21:53:00 +00:00
x_long.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00