//
// RSA_padding_add_none from 0xe6ae48 to 0xe6aec4 (124 bytes)
//
// 3 xrefs:
// > sub_DD4B3C @ 0xdd4d2c
// > sub_DD4EB0 @ 0xdd50fc
// > ??> @ 0x67410
//
// 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
//
__int64 __fastcall RSA_padding_add_none(void *a1, int a2, void *a3, signed int a4)
{
if ( a4 > a2 )
{
ERR_put_error(4, 107, 110, (__int64)"crypto/rsa/rsa_none.c", 18);
return 0;
}
else if ( a4 < a2 )
{
ERR_put_error(4, 107, 122, (__int64)"crypto/rsa/rsa_none.c", 23);
return 0;
}
else
{
memcpy(a1, a3, (unsigned int)a4);
return 1;
}
}