File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
spdmlib/src/crypto/fips/hmac_st Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ pub fn run_self_tests() -> SpdmResult {
3131 mac. data . copy_from_slice ( & vecc) ;
3232
3333 if hmac:: hmac_verify ( SpdmBaseHashAlgo :: TPM_ALG_SHA_256 , cv. key , cv. msg , & mac) . is_err ( ) {
34- assert ! ( false , "Failed to run verify" ) ;
3534 return Err ( SPDM_STATUS_FIPS_SELF_TEST_FAIL ) ;
3635 }
3736 }
@@ -51,7 +50,6 @@ pub fn run_self_tests() -> SpdmResult {
5150 mac. data . copy_from_slice ( & vecc) ;
5251
5352 if hmac:: hmac_verify ( SpdmBaseHashAlgo :: TPM_ALG_SHA_384 , cv. key , cv. msg , & mac) . is_err ( ) {
54- assert ! ( false , "Failed to run verify" ) ;
5553 return Err ( SPDM_STATUS_FIPS_SELF_TEST_FAIL ) ;
5654 }
5755 }
@@ -71,7 +69,6 @@ pub fn run_self_tests() -> SpdmResult {
7169 mac. data . copy_from_slice ( & vecc) ;
7270
7371 if hmac:: hmac_verify ( SpdmBaseHashAlgo :: TPM_ALG_SHA_512 , cv. key , cv. msg , & mac) . is_err ( ) {
74- assert ! ( false , "Failed to run verify" ) ;
7572 return Err ( SPDM_STATUS_FIPS_SELF_TEST_FAIL ) ;
7673 }
7774 }
You can’t perform that action at this time.
0 commit comments