//
// sub_DD2A94 from 0xdd2a94 to 0xdd2b2c (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x1130708
//
// 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 sub_DD2A94(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x0
int v5; // [xsp+24h] [xbp+24h] BYREF
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
result = PKCS8_pkey_get0(nullptr, &v6, &v5, nullptr, a2);
if ( (_DWORD)result )
{
v4 = d2i_RSAPrivateKey(0, &v6);
if ( v4 )
{
EVP_PKEY_assign(a1, 6u, v4);
return 1;
}
else
{
ERR_put_error(4, 147, 4, (__int64)"crypto/rsa/rsa_ameth.c", 72);
return 0;
}
}
return result;
}