//
// EVP_CIPHER_CTX_rand_key from 0x8034ac to 0x8034f0 (68 bytes)
//
// 4 xrefs:
// > PKCS7_dataInit @ 0x826df0
// > PKCS7_dataDecode @ 0x827728
// > cms_EncryptedContent_init_bio @ 0x8cf608
// > ??> @ 0x6359c
//
// 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 EVP_CIPHER_CTX_rand_key(_DWORD *a1, int a2)
{
if ( (*(_DWORD *)(*a1 + 16) & 0x200) != 0 )
return EVP_CIPHER_CTX_ctrl((int)a1);
else
return RAND_bytes(a2, a1[22]) > 0;
}