mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-29 00:49:56 +01:00
BN APIs from ssl.c have been moved out to ssl_bn.c that is included in ssl.c. Added defines for BN_rand() and BN_pseudo_rand() to indicate which bits are to be set. 'internal' field now always maps to the ;mpi' field that is a MP integer. SetIndividualInternal/External renamed to wolfssl_bn_get/set_value. Fixed BN APIs to work as closely to OpenSSL as possible. Added tests. Moved wolfssl_make_rng out to ssl.c as BN APIs are using it now. SP int and TFM now check trials are in a valid range for mp_prime_is_prime_ex().