commit | d82ab38ca2b63638a2cb0b5d8a2c76d90c86dd31 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@google.com> | Thu Apr 23 13:54:37 2015 -0700 |
committer | Kenny Root <kroot@google.com> | Thu Apr 23 21:57:00 2015 +0000 |
tree | 3cea780c4956edec6e4be340cf510a618b794c8c | |
parent | 217eaab310220731646f2a1a0159d71e4eb09d4a [diff] |
Ensure BN_asc2bn, BN_dec2bn, and BN_hex2bn never give -0. When |BN_dec2bn| and |BN_hex2bn| were merged (way back in the initial BoringSSL change), the neg flag was set too soon and could be cleared by |BN_add_word|. This is an import of upstream's c85573cc. The unittest change isn't included here because bn_test.c has changed significantly in upstream and BoringSSL unittests aren't run in the Android environment. Bug: 20523350 Change-Id: Iaf8efe2fe3419218437f5ebb9a15f73559860a0f