// // DHparams_print from 0xd872bc to 0xd87574 (696 bytes) // // 1 xrefs: // > @ 0xacdd0 // // 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 DHparams_print(__int64 a1, __int64 a2) { int v4; // w0 __int64 v5; // x2 __int64 v7; // x2 __int64 v8; // x2 __int64 v9; // x21 const char *v10; // x3 int v11; // w2 int v12; // w0 __int64 v13; // x2 if ( *(_QWORD *)(a2 + 8) ) { BIO_indent(a1, 4, 128); v4 = BN_num_bits(*(_QWORD *)(a2 + 8)); if ( (int)BIO_printf(a1, "%s: (%d bit)\n", "DH Parameters", v4) > 0 ) { if ( (unsigned int)ASN1_bn_print(a1, "private-key:", 0, 0, 8) ) { if ( (unsigned int)ASN1_bn_print(a1, "public-key:", 0, 0, 8) ) { if ( (unsigned int)ASN1_bn_print(a1, "prime:", *(_QWORD *)(a2 + 8), 0, 8) ) { if ( (unsigned int)ASN1_bn_print(a1, "generator:", *(_QWORD *)(a2 + 16), 0, 8) ) { v7 = *(_QWORD *)(a2 + 64); if ( !v7 || (unsigned int)ASN1_bn_print(a1, "subgroup order:", v7, 0, 8) ) { v8 = *(_QWORD *)(a2 + 72); if ( !v8 || (unsigned int)ASN1_bn_print(a1, "subgroup factor:", v8, 0, 8) ) { if ( *(_QWORD *)(a2 + 80) ) { BIO_indent(a1, 8, 128); v9 = 0; BIO_puts(a1, (__int64)"seed:"); while ( 1 ) { v12 = *(_DWORD *)(a2 + 88); if ( (int)v9 >= v12 ) break; if ( 15 * ((int)v9 / 15) == (_DWORD)v9 ) { if ( (int)BIO_puts(a1, (__int64)&byte_F1AB78) <= 0 || !(unsigned int)BIO_indent(a1, 12, 128) ) goto LABEL_4; v12 = *(_DWORD *)(a2 + 88); } if ( (_DWORD)v9 + 1 == v12 ) v10 = &byte_F288A0; else v10 = ":"; v11 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 80) + v9++); if ( (int)BIO_printf(a1, "%02x%s", v11, v10) <= 0 ) goto LABEL_4; } if ( (int)BIO_write(a1, (__int64)&byte_F1AB78, 1u) <= 0 ) return 0; } v13 = *(_QWORD *)(a2 + 96); if ( !v13 || (unsigned int)ASN1_bn_print(a1, "counter:", v13, 0, 8) ) { if ( !*(_QWORD *)(a2 + 24) ) return 1; BIO_indent(a1, 8, 128); if ( (int)BIO_printf(a1, "recommended-private-length: %d bits\n", *(_DWORD *)(a2 + 24)) > 0 ) return 1; } } } } } } } } LABEL_4: v5 = 7; } else { v5 = 67; } ERR_put_error(5, 100, v5, "crypto/dh/dh_ameth.c", 343); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source