Skip to content

Commit 1809d69

Browse files
committed
CR fixes
1 parent a719b51 commit 1809d69

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crypto/evp_extra/p_pqdsa_asn1.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,13 @@ static int pqdsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key, CBS *pubkey)
167167

168168
// Set the private key
169169
if (!PQDSA_KEY_set_raw_private_key(out->pkey.pqdsa_key, key)) {
170-
OPENSSL_PUT_ERROR(EVP, EVP_R_DECODE_ERROR);
170+
// PQDSA_KEY_set_raw_private_key sets the appropriate error.
171171
return 0;
172172
}
173173

174-
175-
}
176-
else if (CBS_len(key) == out->pkey.pqdsa_key->pqdsa->keygen_seed_len) {
174+
} else if (CBS_len(key) == out->pkey.pqdsa_key->pqdsa->keygen_seed_len) {
177175
if (!PQDSA_KEY_set_raw_keypair_from_seed(out->pkey.pqdsa_key, key)) {
178-
OPENSSL_PUT_ERROR(EVP, EVP_R_DECODE_ERROR);
176+
// PQDSA_KEY_set_raw_keypair_from_seed sets the appropriate error.
179177
return 0;
180178
}
181179
}

0 commit comments

Comments
 (0)