// // BN_security_bits from 0x9e9124 to 0x9e91ac (136 bytes) // // 4 xrefs: // > DH_security_bits @ 0x9f5438 // > DSA_security_bits @ 0x9f6de8 // > RSA_security_bits @ 0xa42728 // > @ 0x7959c // // 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:25 +0000 // int __fastcall BN_security_bits(int a1, int a2) { int result; // r0 int v3; // r1 if ( a1 >= 15360 ) { result = 256; LABEL_6: if ( a2 == -1 ) return result; goto LABEL_7; } if ( a1 > 7689 ) { result = 192; if ( a2 == -1 ) return result; goto LABEL_7; } if ( a1 < 3072 ) { if ( a1 >= 2048 ) { result = 112; } else { if ( a1 < 1024 ) return 0; result = 80; } goto LABEL_6; } result = 128; if ( a2 == -1 ) return result; LABEL_7: v3 = a2 / 2; if ( v3 <= 79 ) return 0; if ( result >= v3 ) return v3; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source