//
// EVP_CIPHER_set_asn1_iv from 0xa1842c to 0xa18480 (84 bytes)
//
// 21 xrefs:
// > EVP_CIPHER_param_to_asn1 @ 0xa186b8
// > ??> @ 0x7cc3c
// > ??> @ 0xd16fec
// > ??> @ 0xd17020
// > ??> @ 0xd17054
// > ??> @ 0xd17088
// > ??> @ 0xd170bc
// > ??> @ 0xd170f0
// > ??> @ 0xd17124
// > ??> @ 0xd17158
// > ??> @ 0xd1718c
// > ??> @ 0xd171c0
// > ??> @ 0xd19730
// > ??> @ 0xd19764
// > ??> @ 0xd19798
// > ??> @ 0xd197cc
// > ??> @ 0xd19800
// > ??> @ 0xd19834
// > ??> @ 0xd19868
// > ??> @ 0xd1989c
// > ??> @ 0xd198d0
//
// 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_set_asn1_iv(int a1, int a2, int a3, int a4)
{
unsigned int v6; // r2
if ( !a2 )
return 0;
v6 = EVP_CIPHER_CTX_iv_length(a1);
if ( v6 > 0x10 )
OPENSSL_die("assertion failed: j <= sizeof(c->iv)", "crypto/evp/evp_lib.c", 99);
return ASN1_TYPE_set_octetstring(a2, a1 + 16, v6, a4);
}