// // RSA_padding_add_X931 from 0x83246c to 0x832528 (188 bytes) // // 2 xrefs: // > sub_82E968 @ 0x82ea78 // > @ 0x6643c // // 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 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