feat: Add FIPS self test support

Added fips_selftest run before any crypto use in Stage1A.
updated IppCrypto to 1.0.1 version

Signed-off-by: Antara Borwankar <antara.borwankar@intel.com>
This commit is contained in:
Antara Borwankar
2025-01-22 18:18:41 +05:30
committed by Guo Dong
parent 615454fec9
commit df944f5298
21 changed files with 917 additions and 66 deletions
@@ -86,7 +86,12 @@ DoRsaVerify (
CopyMem (OutHash, Digest, DigestSize);
}
#if FixedPcdGetBool(PcdIppcrypto2Lib)
// RSA Pkcs 1.5 requires to pass message to be verified
Status = RsaVerify2_Pkcs_1_5 (PublicKey, SignatureHdr, Data, Length);
#else
Status = RsaVerify_Pkcs_1_5 (PublicKey, SignatureHdr, Digest);
#endif
} else if(SignatureHdr->SigType == SIGNING_TYPE_RSA_PSS) {