Incremental cleanups to bn_lib.c.
authorGeoff Thorpe <geoff@openssl.org>
Tue, 2 Dec 2003 20:01:30 +0000 (20:01 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Tue, 2 Dec 2003 20:01:30 +0000 (20:01 +0000)
commit2bfd2c74d256483cab8775a94204839d25020577
tree0111a9ab0dd70911be32e5f83d7209ff64538285
parent82b2f57e30e1348edc620855ed0999cbb50f1d52
Incremental cleanups to bn_lib.c.
- Add missing bn_check_top() calls and relocate some others
- Use BN_is_zero() where appropriate
- Remove assert()s that bn_check_top() is already covering
- Simplify the code in places (esp. bn_expand2())
- Only keep ambiguous zero handling if BN_STRICT isn't defined
- Remove some white-space and make some other aesthetic tweaks
crypto/bn/bn_lib.c