summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/BaseCryptLibNull/Pk/CryptTsNull.c
diff options
context:
space:
mode:
authorSean Brogan <sean.brogan@microsoft.com>2019-09-25 10:14:09 -0700
committerMichael D Kinney <michael.d.kinney@intel.com>2019-10-23 18:37:19 -0700
commitd95de082da01f4a4cb3ebf87e15972a12d0f8d53 (patch)
tree8cc202b3f0e7abac63937d5b2d72052c4aa3281d /CryptoPkg/Library/BaseCryptLibNull/Pk/CryptTsNull.c
parent20c082e8d764579bdd374bf156346b28aa3471de (diff)
downloadedk2-d95de082da01f4a4cb3ebf87e15972a12d0f8d53.tar.gz
edk2-d95de082da01f4a4cb3ebf87e15972a12d0f8d53.tar.bz2
edk2-d95de082da01f4a4cb3ebf87e15972a12d0f8d53.zip
CryptoPkg: Add Null instance of the BaseCryptLib class
https://bugzilla.tianocore.org/show_bug.cgi?id=2257 Add a Null instance of the BaseCryptLib class. This lib instance can be used as a template for new implementations of the BaseCryptLib class and can also be used to reduce CI build times for build checks that depend on the BaseCryptLib class. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyux.lu@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Diffstat (limited to 'CryptoPkg/Library/BaseCryptLibNull/Pk/CryptTsNull.c')
-rw-r--r--CryptoPkg/Library/BaseCryptLibNull/Pk/CryptTsNull.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/CryptoPkg/Library/BaseCryptLibNull/Pk/CryptTsNull.c b/CryptoPkg/Library/BaseCryptLibNull/Pk/CryptTsNull.c
new file mode 100644
index 0000000000..907988814a
--- /dev/null
+++ b/CryptoPkg/Library/BaseCryptLibNull/Pk/CryptTsNull.c
@@ -0,0 +1,42 @@
+/** @file
+ RFC3161 Timestamp Countersignature Verification Wrapper Implementation which does
+ not provide real capabilities.
+
+Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
+SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include "InternalCryptLib.h"
+
+/**
+ Verifies the validity of a RFC3161 Timestamp CounterSignature embedded in PE/COFF Authenticode
+ signature.
+
+ Return FALSE to indicate this interface is not supported.
+
+ @param[in] AuthData Pointer to the Authenticode Signature retrieved from signed
+ PE/COFF image to be verified.
+ @param[in] DataSize Size of the Authenticode Signature in bytes.
+ @param[in] TsaCert Pointer to a trusted/root TSA certificate encoded in DER, which
+ is used for TSA certificate chain verification.
+ @param[in] CertSize Size of the trusted certificate in bytes.
+ @param[out] SigningTime Return the time of timestamp generation time if the timestamp
+ signature is valid.
+
+ @retval FALSE This interface is not supported.
+
+**/
+BOOLEAN
+EFIAPI
+ImageTimestampVerify (
+ IN CONST UINT8 *AuthData,
+ IN UINTN DataSize,
+ IN CONST UINT8 *TsaCert,
+ IN UINTN CertSize,
+ OUT EFI_TIME *SigningTime
+ )
+{
+ ASSERT (FALSE);
+ return FALSE;
+}