Skip to content

Commit b7305e9

Browse files
committed
PRIVATE_KEY_UNLOCK > PRIVATE_KEY_LOCK
1 parent 8c005d2 commit b7305e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/we_rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ static int we_rsa_priv_enc_int(size_t fromLen, const unsigned char *from,
11771177
PRIVATE_KEY_UNLOCK();
11781178
ret = wc_RsaDirect(padded, paddedSz, to, &tLen,
11791179
&rsa->key, RSA_PRIVATE_ENCRYPT, rng);
1180-
PRIVATE_KEY_UNLOCK();
1180+
PRIVATE_KEY_LOCK();
11811181
if (ret < 0) {
11821182
WOLFENGINE_ERROR_FUNC(WE_LOG_PK, "wc_RsaDirect",
11831183
ret);

0 commit comments

Comments
 (0)