// // RSA_padding_add_X931 from 0xa4706c to 0xa47128 (188 bytes) // // 2 xrefs: // > sub_A43568 @ 0xa43678 // > @ 0x7febc // // 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:08:16 +0000 // int __fastcall RSA_padding_add_X931(_BYTE *a1, int a2, void *a3, size_t a4) { size_t v4; // r1 _BYTE *v7; // r12 void *v8; // r3 v4 = a2 - a4; if ( (int)(v4 - 2) < 0 ) { ERR_put_error(4, 127, 110, (int)"crypto/rsa/rsa_x931.c", 30); return -1; } else { if ( v4 == 2 ) { *a1 = 106; v8 = a1 + 1; } else { *a1 = 107; v7 = a1 + 1; if ( v4 != 3 ) v7 = (char *)memset(a1 + 1, 187, v4 - 3) + v4 - 3; v8 = v7 + 1; *v7 = -70; } *((_BYTE *)memcpy(v8, a3, a4) + a4) = -52; return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source