//
// EVP_CIPHER_CTX_rand_key from 0xdaa228 to 0xdaa270 (72 bytes)
//
// 4 xrefs:
// > PKCS7_dataInit @ 0xdcc708
// > PKCS7_dataDecode @ 0xdccf90
// > cms_EncryptedContent_init_bio @ 0xe7b2b8
// > ??> @ 0xb8410
//
// 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 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;
}