Skip to content

Commit

Permalink
fix benign clang-analyzer-deadcode.DeadStores in pq crypto files intr…
Browse files Browse the repository at this point in the history
…oduced in 9a58301.
  • Loading branch information
douzzer committed May 24, 2024
1 parent a5154b2 commit 8de00d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions wolfcrypt/src/dilithium.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ static int parse_private_key(const byte* priv, word32 privSz,
/* At this point, it is still a PKCS8 private key. */
if ((ret = ToTraditionalInline(priv, &idx, privSz)) < 0) {
/* ignore error, did not have PKCS8 header */
(void)ret;
}

/* Now it is a octet_string(concat(priv,pub)) */
Expand Down
1 change: 1 addition & 0 deletions wolfcrypt/src/falcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ static int parse_private_key(const byte* priv, word32 privSz,
/* At this point, it is still a PKCS8 private key. */
if ((ret = ToTraditionalInline(priv, &idx, privSz)) < 0) {
/* ignore error, did not have PKCS8 header */
(void)ret;
}

/* Now it is a octet_string(concat(priv,pub)) */
Expand Down
1 change: 1 addition & 0 deletions wolfcrypt/src/sphincs.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ static int parse_private_key(const byte* priv, word32 privSz,
/* At this point, it is still a PKCS8 private key. */
if ((ret = ToTraditionalInline(priv, &idx, privSz)) < 0) {
/* ignore error, did not have PKCS8 header */
(void)ret;
}

/* Now it is a octet_string(concat(priv,pub)) */
Expand Down

0 comments on commit 8de00d7

Please sign in to comment.