//
// PKCS7_set_cipher from 0xdcf1d8 to 0xdcf2b0 (216 bytes)
//
// 1 xrefs:
// > ??> @ 0x55188
//
// 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 PKCS7_set_cipher(__int64 a1, unsigned int *a2)
{
int v4; // w0
__int64 v5; // x21
unsigned int v6; // w19
v4 = OBJ_obj2nid(*(_QWORD *)(a1 + 24));
if ( v4 == 23 )
{
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 16LL);
v6 = EVP_CIPHER_type(a2);
if ( v6 )
goto LABEL_4;
}
else
{
if ( v4 != 24 )
{
ERR_put_error(33, 108, 113, (__int64)"crypto/pkcs7/pk7_lib.c", 532);
return 0;
}
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 40LL);
v6 = EVP_CIPHER_type(a2);
if ( v6 )
{
LABEL_4:
*(_QWORD *)(v5 + 24) = a2;
return 1;
}
}
ERR_put_error(33, 108, 144, (__int64)"crypto/pkcs7/pk7_lib.c", 540);
return v6;
}