Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use ASN1_INTEGER to encode/decode BIGNUM_it. | jsing | 2022-07-30 | 1 | -34/+48 |
| | | | | | | | | | | The current code simply shoves the unvalidated ASN.1 bytes into a BIGNUM on the hope that other things will detect issues (such as negative values being flipped to positive). Instead of doing this, decode and validate the ASN.1 data using ASN1_INTEGER, then convert it to a BIGNUM. Similarly, for encoding convert from BIGNUM to ASN1_INTEGER and use ASN1_INTEGER encoding. ok tb@ | ||||
* | Provide and use a primitive clear function for BIGNUM_it. | jsing | 2022-07-30 | 1 | -8/+15 |
| | | | | | | Also tidy up bn_new() while here. ok tb@ | ||||
* | Implement a print function for BIGNUM_it. | jsing | 2019-04-01 | 1 | -2/+18 |
| | | | | ok beck@, tb@ | ||||
* | Use named field initialisers. | jsing | 2019-03-31 | 1 | -8/+9 |
| | |||||
* | Manually expand ASN.1 template macros - only change in generated assembly | jsing | 2015-07-25 | 1 | -7/+19 |
| | | | | is due to line numbering. | ||||
* | A few fixes/improvements: | miod | 2014-07-12 | 1 | -20/+19 |
| | | | | | | | | | | | | | | | | - first, BN_free == BN_clear_free in our libcrypto, so we do not need to treat CBIGNUM (crypto BN) separately from BIGNUM (regular BN). - then, in bn_i2c(), since BN_bn2bin returns BN_num_bytes(input), take advantage of this to avoid calling BN_num_bytes() a second time. BN_num_bytes() is cheap, but this not a reason to perform redundant work. - finally, in bn_c2i, if bn_new() fails, return early. Otherwise BN_bin2bn will try to create a BN too, and although this will probably fail since we were already out of memory, if we are on a threaded process and suddenly the allocation succeeds, we will leak it since it will never be stored in *pval. ok jsing@ | ||||
* | Only import cryptlib.h in the four source files that actually need it. | jsing | 2014-07-11 | 1 | -2/+2 |
| | | | | | | | | Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@ | ||||
* | tags as requested by miod and tedu | deraadt | 2014-06-12 | 1 | -1/+1 |
| | |||||
* | More KNF. | jsing | 2014-04-18 | 1 | -26/+43 |
| | |||||
* | resolve conflicts | djm | 2009-01-09 | 1 | -1/+1 |
| | |||||
* | resolve conflicts | djm | 2008-09-06 | 1 | -2/+4 |
| | |||||
* | OpenSSL 0.9.7 stable 2002 05 08 merge | beck | 2002-05-15 | 1 | -0/+137 |