mirror of https://github.com/RPCS3/rpcs3.git
unedat.cpp: Remove outdated lock
This commit is contained in:
parent
dd8ec8f09e
commit
dddea008e9
|
@ -13,9 +13,6 @@
|
||||||
|
|
||||||
LOG_CHANNEL(edat_log, "EDAT");
|
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)
|
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;
|
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 signature_s[0x15] = { 0 };
|
||||||
unsigned char zero_buf[0x15] = { 0 };
|
unsigned char zero_buf[0x15] = { 0 };
|
||||||
|
|
||||||
std::lock_guard lock(ec_mtx);
|
|
||||||
|
|
||||||
// Setup ECDSA curve and public key.
|
// 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_curve(VSH_CURVE_P, VSH_CURVE_A, VSH_CURVE_B, VSH_CURVE_N, VSH_CURVE_GX, VSH_CURVE_GY);
|
||||||
ecdsa_set_pub(VSH_PUB);
|
ecdsa_set_pub(VSH_PUB);
|
||||||
|
|
Loading…
Reference in New Issue