//
// EVP_read_pw_string_min from 0x10df508 to 0x10df5f4 (236 bytes)
//
// 4 xrefs:
// > PEM_def_callback @ 0x10451f0
// > PEM_def_callback @ 0x1045250
// > EVP_read_pw_string @ 0x10df60c
// > ??> @ 0x6e2c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:48 +0000
//
__int64 __fastcall EVP_read_pw_string_min(__int64 a1, int a2, int a3, char *a4, int a5)
{
char *v5; // x21
__int64 *v10; // x0
__int64 *v11; // x20
unsigned int v12; // w19
_BYTE v14[1024]; // [xsp+40h] [xbp+40h] BYREF
v5 = a4;
if ( !a4 )
{
if ( byte_15686D0 )
v5 = &byte_15686D0;
else
v5 = nullptr;
}
v10 = UI_new();
v11 = v10;
if ( !v10 )
return 0xFFFFFFFFLL;
if ( a3 > 1023 )
a3 = 1023;
UI_add_input_string((__int64)v10, (__int64)v5, 0, a1, a2, a3);
if ( a5 )
UI_add_verify_string((__int64)v11, (__int64)v5, 0, (__int64)v14, a2, a3, a1);
v12 = UI_process(v11);
UI_free((__int64)v11);
OPENSSL_cleanse(v14, 0x400u);
return v12;
}