// // ec_GF2m_simple_point_get_affine_coordinates from 0x889e6c to 0x889f6c (256 bytes) // // 2 xrefs: // > @ 0x6a9dc // > @ 0xab4fb8 // // 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 // int __fastcall ec_GF2m_simple_point_get_affine_coordinates(int a1, _DWORD *a2, int a3, int a4) { int *v7; // r4 int *v8; // r0 int v9; // r4 if ( EC_POINT_is_at_infinity(a1, a2) ) { ERR_put_error(16, 162, 106, (int)"crypto/ec/ec2_smpl.c", 394); return 0; } else { v7 = (int *)a2[3]; v8 = (int *)BN_value_one(); v9 = BN_cmp(v7, v8); if ( !v9 ) { if ( a3 ) { if ( !BN_copy(a3, a2[1]) ) return v9; BN_set_negative(a3, 0); } if ( !a4 ) return 1; if ( BN_copy(a4, a2[2]) ) { BN_set_negative(a4, 0); return 1; } return v9; } ERR_put_error(16, 162, 66, (int)"crypto/ec/ec2_smpl.c", 400); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source