gost: add missing BN_CTX_{start,end}() pair
authortb <tb@openbsd.org>
Sun, 15 Jan 2023 13:58:44 +0000 (13:58 +0000)
committertb <tb@openbsd.org>
Sun, 15 Jan 2023 13:58:44 +0000 (13:58 +0000)
commitcc7df38958bc53291cf2cc2f8d1a994910474d1a
tree1f96f59ffe4f9e3b8a7857f01a2447304b3125e0
parentb34a7ebb88ab028537d43818d54b01e0d85fab8a
gost: add missing BN_CTX_{start,end}() pair

The new BN_CTX code enforces that the context be started before a BIGNUM
can be obtained from it via BN_CTX_get(), tests for ssl/interop and the
openssl app broke, implying missing test coverage in libcrypto itself.
Add the obviously missing bits.

reported by anton
ok jsing
lib/libcrypto/gost/gostr341001_key.c