//
// RSA_padding_add_none from 0x10e8e48 to 0x10e8ec4 (124 bytes)
//
// 3 xrefs:
// > sub_1052E9C @ 0x105308c
// > sub_1053210 @ 0x105345c
// > ??> @ 0x8c188
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:18:01 +0000
//
__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;
}
}