//
// SCT_set1_signature from 0x100260c to 0x10026c0 (180 bytes)
//
// 2 xrefs:
// > o2i_SCT_signature @ 0x100145c
// > ??> @ 0xe6590
//
// 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:15:54 +0000
//
__int64 __fastcall SCT_set1_signature(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
CRYPTO_free(*(_QWORD *)(a1 + 72), "crypto/ct/ct_sct.c", 173);
*(_QWORD *)(a1 + 72) = 0;
*(_QWORD *)(a1 + 80) = 0;
*(_DWORD *)(a1 + 96) = 0;
if ( !a2 || !a3 )
return 1;
v6 = CRYPTO_memdup(a2, a3, "crypto/ct/ct_sct.c", 179);
*(_QWORD *)(a1 + 72) = v6;
if ( v6 )
{
*(_QWORD *)(a1 + 80) = a3;
return 1;
}
else
{
ERR_put_error(50, 116, 65, "crypto/ct/ct_sct.c", 181);
return 0;
}
}