//
// RSA_padding_check_none from 0xad4f24 to 0xad4f98 (116 bytes)
//
// 3 xrefs:
// > sub_A42E10 @ 0xa43094
// > sub_A43A80 @ 0xa43dd4
// > ??> @ 0x7fe4c
//
// 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:09:27 +0000
//
int __fastcall RSA_padding_check_none(char *a1, signed int a2, const void *a3, signed int a4)
{
int v6; // r6
if ( a4 > a2 )
{
ERR_put_error(4, 111, 109, (int)"crypto/rsa/rsa_none.c", 36);
return -1;
}
else
{
v6 = a2 - a4;
memset(a1, 0, a2 - a4);
memcpy(&a1[v6], a3, a4);
return a2;
}
}