Skip to content

Commit

Permalink
fix test case after changed test_key.
Browse files Browse the repository at this point in the history
Signed-off-by: Yang, Longlong <[email protected]>
  • Loading branch information
longlongyang committed Jan 22, 2024
1 parent c71e179 commit fa1b68d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spdmlib/src/crypto/x509v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -933,23 +933,23 @@ mod tests {
SpdmBaseAsymAlgo::TPM_ALG_ECDSA_ECC_NIST_P384,
false
),
Ok(460)
Ok(464)
);
assert_eq!(
check_tbs_certificate(
&t3[4..],
SpdmBaseAsymAlgo::TPM_ALG_ECDSA_ECC_NIST_P256,
false
),
Ok(460)
Ok(464)
);
assert_eq!(
check_tbs_certificate(
&t3[4..],
SpdmBaseAsymAlgo::TPM_ALG_ECDSA_ECC_NIST_P384,
true
),
Ok(460)
Ok(464)
);
assert_eq!(
check_tbs_certificate(
Expand Down Expand Up @@ -1022,7 +1022,7 @@ mod tests {
);
assert_eq!(
check_cert_format(&c3, SpdmBaseAsymAlgo::TPM_ALG_ECDSA_ECC_NIST_P384),
Ok(583)
Ok(587)
);
assert_eq!(
check_cert_format(&c3, SpdmBaseAsymAlgo::TPM_ALG_ECDSA_ECC_NIST_P256),
Expand Down

0 comments on commit fa1b68d

Please sign in to comment.