fix benign clang-analyzer-deadcode.DeadStores in pq crypto files introduced in 9a58301ab1.

This commit is contained in:
Daniel Pouzzner
2024-05-24 14:24:02 -05:00
parent a5154b22f1
commit 8de00d7651
3 changed files with 3 additions and 0 deletions

View File

@ -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)) */

View File

@ -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)) */

View File

@ -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)) */