// // BN_from_montgomery from 0xff9f18 to 0xff9fac (148 bytes) // // 6 xrefs: // > ec_GFp_mont_field_decode @ 0x1014a3c // > BN_mod_exp_mont_consttime @ 0x1095298 // > BN_mod_exp_mont @ 0x10956e8 // > BN_mod_exp_mont_word @ 0x1095a88 // > BN_mod_exp2_mont @ 0x109685c // > @ 0x7d3f8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:15:50 +0000 // __int64 __fastcall BN_from_montgomery(__int64 a1, __int64 a2, __int64 a3, __int64 a4) { unsigned __int64 *v7; // x0 __int64 v8; // x20 unsigned int v9; // w20 BN_CTX_start(a4); v7 = (unsigned __int64 *)BN_CTX_get(a4); v8 = (__int64)v7; if ( v7 && BN_copy(v7, a2) ) { v9 = sub_FF9954(a1, v8, a3); BN_CTX_end(a4); return v9; } else { BN_CTX_end(a4); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source