// // BN_BLINDING_new from 0xa805d4 to 0xa8070c (312 bytes) // // 2 xrefs: // > BN_BLINDING_create_param @ 0xa8086c // > @ 0x8370c // // 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:08:49 +0000 // _DWORD *__fastcall BN_BLINDING_new(int a1, int a2, int a3) { _DWORD *v6; // r4 pthread_rwlock_t *v7; // r5 int v8; // r0 int v9; // r0 int v10; // r0 v6 = CRYPTO_zalloc(&word_28, (int)"crypto/bn/bn_blind.c", 36); if ( v6 ) { v7 = CRYPTO_THREAD_lock_new(); v6[9] = v7; if ( v7 ) { BN_BLINDING_set_current_thread((int)v6); if ( (!a1 || (v8 = BN_dup(a1), (*v6 = v8) != 0)) && (!a2 || (v9 = BN_dup(a2), (v6[1] = v9) != 0)) && (v10 = BN_dup(a3), (v6[3] = v10) != 0) ) { if ( BN_get_flags(a3, 4) ) BN_set_flags(v6[3], 4); v6[5] = -1; return v6; } else { BN_BLINDING_free((int)v6); return nullptr; } } else { ERR_put_error(3, 102, 65, (int)"crypto/bn/bn_blind.c", 43); CRYPTO_free(v6, (int)"crypto/bn/bn_blind.c", 44); return nullptr; } } else { ERR_put_error(3, 102, 65, (int)"crypto/bn/bn_blind.c", 37); return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source