From dddea008e91bd101917b4dc87bd37bf108c0e2d2 Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 30 Dec 2022 10:21:52 +0200 Subject: [PATCH] unedat.cpp: Remove outdated lock --- rpcs3/Crypto/unedat.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rpcs3/Crypto/unedat.cpp b/rpcs3/Crypto/unedat.cpp index 3635df77fd..07ee680f6b 100644 --- a/rpcs3/Crypto/unedat.cpp +++ b/rpcs3/Crypto/unedat.cpp @@ -13,9 +13,6 @@ LOG_CHANNEL(edat_log, "EDAT"); -// Static variables are being modified concurrently in ec.cpp, for now use a mutex -static shared_mutex ec_mtx; - void generate_key(int crypto_mode, int version, unsigned char *key_final, unsigned char *iv_final, unsigned char *key, unsigned char *iv) { int mode = crypto_mode & 0xF0000000; @@ -482,8 +479,6 @@ int check_data(unsigned char *key, EDAT_HEADER *edat, NPD_HEADER *npd, const fs: unsigned char signature_s[0x15] = { 0 }; unsigned char zero_buf[0x15] = { 0 }; - std::lock_guard lock(ec_mtx); - // Setup ECDSA curve and public key. ecdsa_set_curve(VSH_CURVE_P, VSH_CURVE_A, VSH_CURVE_B, VSH_CURVE_N, VSH_CURVE_GX, VSH_CURVE_GY); ecdsa_set_pub(VSH_PUB);