Skip to content

Commit

Permalink
improve readablity
Browse files Browse the repository at this point in the history
  • Loading branch information
ducnguyen-sb committed Oct 22, 2023
1 parent 2d817e1 commit ef1bb9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_secret_key_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ void OQS_SECRET_KEY_XMSS_activate_unlock(OQS_SIG_STFL_SECRET_KEY *sk) {
sk->is_locked = false;
}
}
}
}
6 changes: 3 additions & 3 deletions tests/test_sig_stfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,13 +646,13 @@ static OQS_STATUS sig_stfl_test_secret_key(const char *method_name, const char *
goto err;
}

if (!sk->secret_key_data) {
if (sk->secret_key_data == NULL) {
fprintf(stderr, "ERROR: OQS_SECRET_KEY_new incomplete.\n");
goto err;
}

/* set context and secure store callback */
if (sk->set_scrt_key_store_cb) {
if (sk->set_scrt_key_store_cb != NULL) {
context = strdup(file_store_name);
sk->set_scrt_key_store_cb(sk, save_secret_key, (void *)context);
}
Expand Down Expand Up @@ -925,7 +925,7 @@ static OQS_STATUS sig_stfl_test_secret_key_lock(const char *method_name, const c
goto err;
}

if (!lock_test_sk->secret_key_data) {
if (lock_test_sk->secret_key_data == NULL) {
fprintf(stderr, "ERROR: OQS_SECRET_KEY_new incomplete.\n");
goto err;
}
Expand Down

0 comments on commit ef1bb9a

Please sign in to comment.