Kazuki Yamaguchi 1eb6d8aa63 [ruby/openssl] bn: check -1 return from BIGNUM functions
Although the manpage says that BIGNUM functions return 0 on error,
OpenSSL versions before 1.0.2n and current LibreSSL versions may return
-1 instead.

Note that the implementation of OpenSSL::BN#mod_inverse is extracted
from BIGNUM_2c() macro as it didn't really share the same function
signature with others.

https://github.com/ruby/openssl/commit/9b59f34345
2021-03-16 19:37:06 +09:00
..
2020-12-18 21:58:41 +09:00
2020-05-13 15:47:51 +09:00
2020-02-16 15:21:29 +09:00
2020-02-16 15:21:29 +09:00
2020-12-18 18:19:33 +09:00
2020-02-16 15:21:29 +09:00
2020-02-16 15:21:29 +09:00
2020-02-16 15:21:29 +09:00
2020-02-16 15:21:29 +09:00
2020-02-16 15:21:29 +09:00