1. Add new API supports for PEM & X509 key retrieving & verification;

2. Add new MD4 hash supports;
3. Add corresponding test case in Cryptest utility;
4. Fix MACRO definition issue in OpensslLib.inf and parameter checking issues in some wrapper implementations.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11214 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qlong
2010-12-31 07:22:48 +00:00
parent 2a6433fef2
commit 4a567c9690
19 changed files with 1223 additions and 4 deletions

View File

@@ -82,6 +82,12 @@ Sha256Duplicate (
OUT VOID *NewSha256Context
)
{
//
// ASSERT if Sha256Context or NewSha256Context is NULL.
//
ASSERT (Sha256Context != NULL);
ASSERT (NewSha256Context != NULL);
CopyMem (NewSha256Context, Sha256Context, sizeof (SHA256_CTX));
return TRUE;