//
// EVP_CIPHER_CTX_rand_key from 0x1028588 to 0x10285d0 (72 bytes)
//
// 4 xrefs:
// > PKCS7_dataInit @ 0x104aa68
// > PKCS7_dataDecode @ 0x104b2f0
// > cms_EncryptedContent_init_bio @ 0x10f92b8
// > ??> @ 0xf0850
//
// 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:16:14 +0000
//
__int64 __fastcall EVP_CIPHER_CTX_rand_key(unsigned int *a1, __int64 a2)
{
if ( (*(_QWORD *)(*(_QWORD *)a1 + 16LL) & 0x200) != 0 )
return EVP_CIPHER_CTX_ctrl((__int64)a1);
else
return (int)RAND_bytes(a2, a1[26]) > 0;
}