diff options
Diffstat (limited to 'CryptoPkg/Library/OpensslLib/OpensslStub/OpensslCleanse.c')
-rw-r--r-- | CryptoPkg/Library/OpensslLib/OpensslStub/OpensslCleanse.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CryptoPkg/Library/OpensslLib/OpensslStub/OpensslCleanse.c b/CryptoPkg/Library/OpensslLib/OpensslStub/OpensslCleanse.c new file mode 100644 index 0000000000..21c939992d --- /dev/null +++ b/CryptoPkg/Library/OpensslLib/OpensslStub/OpensslCleanse.c @@ -0,0 +1,20 @@ +/** @file
+ Minimal implementation of OPENSSL_cleanse for OpensslLibSm3.inf.
+
+ Copyright (c) 2024, Google LLC. All rights reserved.<BR>
+
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <Base.h>
+#include <Library/BaseMemoryLib.h>
+
+VOID
+OPENSSL_cleanse (
+ VOID *Buffer,
+ UINTN Size
+ )
+{
+ ZeroMem (Buffer, Size);
+}
|