//
// EVP_CIPHER_CTX_rand_key from 0xa180ac to 0xa180f0 (68 bytes)
//
// 4 xrefs:
// > PKCS7_dataInit @ 0xa3b9f0
// > PKCS7_dataDecode @ 0xa3c328
// > cms_EncryptedContent_init_bio @ 0xae4608
// > ??> @ 0x7d01c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:50 +0000
//
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;
}