//
// BN_CTX_new from 0x86bf14 to 0x86bf8c (120 bytes)
//
// 69 xrefs:
// > sub_7E0018 @ 0x7e0040
// > sub_7E01E0 @ 0x7e01ec
// > sub_7E11C4 @ 0x7e12f0
// > sub_7E255C @ 0x7e25dc
// > sub_7E28B8 @ 0x7e2948
// > sub_7E2D78 @ 0x7e2f5c
// > EC_GROUP_new_by_curve_name @ 0x7e7fdc
// > ec_key_simple_generate_key @ 0x7e8e48
// > ec_key_simple_check_key @ 0x7e90b8
// > EC_KEY_set_public_key_affine_coordinates @ 0x7e94b8
// > EC_GROUP_cmp @ 0x7eb678
// > ec_precompute_mont_data @ 0x7eb8e8
// > ec_wNAF_mul @ 0x7ec2e0
// > ec_wNAF_precompute_mult @ 0x7ecebc
// > ecdh_simple_compute_key @ 0x7ed640
// > ossl_ecdsa_sign_setup @ 0x7edbd8
// > ossl_ecdsa_sign_sig @ 0x7ee010
// > ossl_ecdsa_verify_sig @ 0x7eead0
// > ECPKParameters_print @ 0x7ef370
// > ec_GFp_mont_group_set_curve @ 0x7efc5c
// > sub_7F0594 @ 0x7f16d8
// > sub_7F1BA0 @ 0x7f1f2c
// > ec_GFp_simple_set_compressed_coordinates @ 0x7f246c
// > ec_GFp_simple_point2oct @ 0x7f28ac
// > ec_GFp_simple_oct2point @ 0x7f2c48
// > ec_GFp_simple_group_get_curve @ 0x7f2fc0
// > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x7f312c
// > ec_GFp_simple_group_check_discriminant @ 0x7f3284
// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f3538
// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f37e0
// > ec_GFp_simple_dbl @ 0x7f3ce8
// > ec_GFp_simple_group_set_curve @ 0x7f3f88
// > ec_GFp_simple_cmp @ 0x7f4260
// > ec_GFp_simple_add @ 0x7f453c
// > ec_GFp_simple_is_on_curve @ 0x7f4a40
// > ec_GFp_simple_make_affine @ 0x7f4cd8
// > ec_GFp_simple_points_make_affine @ 0x7f4e24
// > RSA_setup_blinding @ 0x82d590
// > sub_82E210 @ 0x82e25c
// > sub_82E5F4 @ 0x82e640
// > sub_82E968 @ 0x82e980
// > sub_82EE80 @ 0x82ee98
// > SRP_Calc_server_key @ 0x836998
// > SRP_Calc_B @ 0x836a94
// > SRP_Calc_A @ 0x836db0
// > SRP_Calc_client_key @ 0x836e5c
// > SRP_Verify_B_mod_N @ 0x837004
// > SRP_create_verifier_BN @ 0x838194
// > BN_CTX_secure_new @ 0x86bf94
// > DH_check @ 0x87f500
// > DH_check_pub_key @ 0x87f788
// > dsa_builtin_paramgen @ 0x8802f8
// > dsa_builtin_paramgen2 @ 0x880c90
// > dsa_builtin_paramgen2 @ 0x880e18
// > ec_GF2m_simple_set_compressed_coordinates @ 0x888f1c
// > ec_GF2m_simple_point2oct @ 0x8892f8
// > ec_GF2m_simple_oct2point @ 0x8896c8
// > ec_GF2m_simple_group_check_discriminant @ 0x889bb0
// > ec_GF2m_simple_cmp @ 0x88a0f0
// > ec_GF2m_simple_make_affine @ 0x88a1fc
// > ec_GF2m_simple_is_on_curve @ 0x88a364
// > ec_GF2m_simple_add @ 0x88a748
// > RSA_generate_key_ex @ 0x8bf978
// > BN_is_prime_fasttest_ex @ 0x8cab80
// > BN_generate_prime_ex @ 0x8cb1e4
// > DH_generate_parameters_ex @ 0x8d08d4
// > DSA_generate_key @ 0x8d0eb4
// > ec_GF2m_simple_mul @ 0x8d1b78
// > ??> @ 0x60a5c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_DWORD *BN_CTX_new()
{
_DWORD *v0; // r0
_DWORD *v1; // r4
v0 = CRYPTO_zalloc(&word_30, (int)"crypto/bn/bn_ctx.c", 138);
v1 = v0;
if ( v0 )
{
v0[2] = 0;
v0[1] = 0;
*v0 = 0;
v0[4] = 0;
v0[3] = 0;
v0[5] = 0;
v0[7] = 0;
v0[6] = 0;
}
else
{
ERR_put_error(3, 106, 65, (int)"crypto/bn/bn_ctx.c", 139);
}
return v1;
}