// // BN_BLINDING_new from 0x86b9d4 to 0x86bb0c (312 bytes) // // 2 xrefs: // > BN_BLINDING_create_param @ 0x86bc6c // > @ 0x69c8c // // 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 // _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