// // ec_key_simple_priv2oct from 0x9fe454 to 0x9fe4f0 (156 bytes) // // 5 xrefs: // > @ 0x7b2bc // > @ 0xd16e1c // > @ 0xd16ee0 // > @ 0xd16fa4 // > @ 0xd196e8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:07:36 +0000 // _DWORD *__fastcall ec_key_simple_priv2oct(int a1, _BYTE *a2, unsigned int a3) { int v6; // r3 _DWORD *result; // r0 int v8; // r4 unsigned int v9; // r4 v6 = EC_GROUP_order_bits(*(_DWORD *)(a1 + 12)); result = *(_DWORD **)(a1 + 20); v8 = v6 + 7; if ( v6 + 7 < 0 ) v8 = v6 + 14; v9 = v8 >> 3; if ( result ) { if ( !a2 ) return (_DWORD *)v9; if ( v9 > a3 ) return nullptr; if ( BN_bn2binpad(result, a2, v9) == -1 ) { ERR_put_error(16, 260, 100, "crypto/ec/ec_key.c", 578); return nullptr; } else { return (_DWORD *)v9; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source