//
// RSA_blinding_on from 0x82d714 to 0x82d75c (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x662cc
//
// 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_blinding_on(int a1, int a2)
{
int result; // r0
int v5; // r3
if ( *(_DWORD *)(a1 + 76) )
RSA_blinding_off(a1);
result = RSA_setup_blinding(a1, a2);
if ( result )
v5 = *(_DWORD *)(a1 + 56);
*(_DWORD *)(a1 + 76) = result;
if ( result )
{
*(_DWORD *)(a1 + 56) = v5 & 0xFFFFFF77 | 8;
return 1;
}
return result;
}