aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/bn.c
AgeCommit message (Collapse)Author
2019-01-15Convert argc checks to ASSERTs per PRDoug Hogan
2019-01-08Convert put_int32 to put_uint32Doug Hogan
2019-01-08Change bin_from_bn to return atom_error on error.Doug Hogan
* Add error checking for OpenSSL call.
2019-01-08Revamp bn2term()Doug Hogan
* Add error handling for OpenSSL calls. * Change dlen to signed since BN_num_bytes() returns int. * Use enif_make_badarg() on error since it only returned undefined before in one type of error.
2019-01-08Revamp mod_exp_nif()Doug Hogan
* Add error checking for OpenSSL calls. * Change dlen from unsigned to signed since BN_num_bytes is int. * Add bounds checking before casting. * Consolidate all freeing to one location on error or success.
2019-01-08Revamp bin_from_bn()Doug Hogan
* Add error handling for all OpenSSL calls - There was nothing returned on error before so use enif_make_badarg(). * Add bounds checking before casting.
2019-01-08Revamp get_bn_from_bin()Doug Hogan
* Add bounds checking. * Add error checking for OpenSSL calls. * Only set *bnp on success.
2019-01-08Revamp get_bn_from_mpint()Doug Hogan
* Add bounds checking. * Add error checking for OpenSSL calls. * Only set argument *bnp on success.
2018-12-20Add Ericsson AB copyright header to all new filesDoug Hogan
Using the same copyright header as crypto.c
2018-12-20Move BN and RSA utility functions to new filesDoug Hogan