]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg: Clean up source files
authorLiming Gao <liming.gao@intel.com>
Wed, 27 Jun 2018 09:32:13 +0000 (17:32 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 28 Jun 2018 03:19:40 +0000 (11:19 +0800)
1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
51 files changed:
CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf
CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.uni
CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni
CryptoPkg/CryptoPkg.dsc
CryptoPkg/CryptoPkg.uni
CryptoPkg/CryptoPkgExtra.uni
CryptoPkg/Include/Library/BaseCryptLib.h
CryptoPkg/Library/BaseCryptLib/BaseCryptLib.uni
CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c
CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c
CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c
CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c
CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c
CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
CryptoPkg/Library/BaseCryptLib/PeiCryptLib.uni
CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptDhNull.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Sign.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyNull.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
CryptoPkg/Library/BaseCryptLib/Pk/CryptX509Null.c
CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c
CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.uni
CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
CryptoPkg/Library/BaseCryptLib/SmmCryptLib.uni
CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.uni
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptAesNull.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptArc4Null.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptMd4Null.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptSha1Null.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacMd5Null.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacSha1Null.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptDhNull.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptPkcs7VerifyNull.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptRsaExtNull.c
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptX509Null.c
CryptoPkg/Library/IntrinsicLib/BaseIntrinsicLib.uni
CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c
CryptoPkg/Library/OpensslLib/OpensslLib.uni
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni

index 23df499ad3e22a36887e71fa0c0c5cf8833c3eb6..967f3a75647ea3b110d3a1f1b9be74975340c29e 100644 (file)
@@ -1,15 +1,15 @@
 ## @file\r
 #  This driver installs runtime Crypt protocol to provide SHA256 and RSA service.\r
 #\r
-#  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
@@ -51,4 +51,4 @@
 \r
 [UserExtensions.TianoCore."ExtraFiles"]\r
   CryptRuntimeDxeExtra.uni\r
-  
\ No newline at end of file
+\r
index 337cdf47b80ccb81260f3325d491a45b53304df7..b7ca7846a3ed6413e8f4a6598898fc2dc63ad4cc 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // This driver installs runtime Crypt protocol to provide SHA256 and RSA service.\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 7fe3a617539ca80ab744e436ee9f3ca27e4cfc8b..1a042e0546639bc09d9509e5c535f3b538ba176d 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // CryptRuntimeDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "CryptRuntimeDxe module"\r
 \r
 \r
index b49e587ba1d3867ba949b83bdaadfbef580417eb..b5afdba4b913413a9fd30e0f4581fc646040fb61 100644 (file)
@@ -6,10 +6,10 @@
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 ################################################################################\r
@@ -38,7 +38,7 @@
   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
-  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf  \r
+  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
   UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
   DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
index effb918cf47147899927b91227a4e923c39670f0..a764d3dea5202783d0f76f286b828a4afe6199aa 100644 (file)
@@ -4,13 +4,13 @@
 // This Package provides cryptographic-related libraries for UEFI security modules.\r
 // It also provides a test application to test libraries.\r
 //\r
-// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 71c4a65aa4b3963beb333073198e76b250bf121f..f37e3cbba2c38abc65939763a4ff3e0679dc2509 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // Crypto Package Localized Strings and Content.\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_PACKAGE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_PACKAGE_NAME\r
+#language en-US\r
 "Crypto package"\r
 \r
 \r
index dc6aaf0635c2e90d84b118344475241d4caf950e..52ab2316db0ef22e8eefec586a0bb98128265c1d 100644 (file)
@@ -2192,7 +2192,7 @@ X509GetSubjectName (
                                    If Certificate is invalid.\r
   @retval RETURN_NOT_FOUND         If no CommonName entry exists.\r
   @retval RETURN_BUFFER_TOO_SMALL  If the CommonName is NULL. The required buffer size\r
-                                   (including the final null) is returned in the \r
+                                   (including the final null) is returned in the\r
                                    CommonNameSize parameter.\r
   @retval RETURN_UNSUPPORTED       The operation is not supported.\r
 \r
index 00609947e5b167f89a95926f11eedfad57b85f28..d9231337da446d7107255dcb8f7435f33c75e925 100644 (file)
@@ -6,13 +6,13 @@
 // This external input must be validated carefully to avoid security issues such as\r
 // buffer overflow or integer overflow.\r
 //\r
-// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 753d79814f724c4619eeb480cbaa555751960084..699dc99ae2661863b14b5e40e90b9c646d1a5d0c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   AES Wrapper Implementation over OpenSSL.\r
 \r
-Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -125,7 +125,7 @@ AesEcbEncrypt (
   if (AesContext == NULL || Input == NULL || (InputSize % AES_BLOCK_SIZE) != 0 || Output == NULL) {\r
     return FALSE;\r
   }\r
-  \r
+\r
   AesKey = (AES_KEY *) AesContext;\r
 \r
   //\r
index 074b07247b452c4923d7e42201e56115b28251ea..6e3acf5e78f742a68d270f5dd7859f57c870ceee 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  AES Wrapper Implementation which does not provide real capabilities.  \r
-  \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+  AES Wrapper Implementation which does not provide real capabilities.\r
+\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -60,12 +60,12 @@ AesInit (
   Performs AES encryption on a data buffer of the specified size in ECB mode.\r
 \r
   Return FALSE to indicate this interface is not supported.\r
-  \r
+\r
   @param[in]   AesContext  Pointer to the AES context.\r
   @param[in]   Input       Pointer to the buffer containing the data to be encrypted.\r
   @param[in]   InputSize   Size of the Input buffer in bytes.\r
   @param[out]  Output      Pointer to a buffer that receives the AES encryption output.\r
-  \r
+\r
   @retval FALSE  This interface is not supported.\r
 \r
 **/\r
@@ -159,7 +159,7 @@ AesCbcDecrypt (
   IN   CONST UINT8  *Ivec,\r
   OUT  UINT8        *Output\r
   )\r
-{  \r
+{\r
   ASSERT (FALSE);\r
   return FALSE;\r
 }\r
index f3c4d31a2d9c1598fd7f295fc187f28fe2bf57ed..3064c443817a047d919877446a8de9fd6be3ca4c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ARC4 Wrapper Implementation over OpenSSL.\r
 \r
-Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -66,7 +66,7 @@ Arc4Init (
 \r
   //\r
   // Check input parameters.\r
-  //  \r
+  //\r
   if (Arc4Context == NULL || Key == NULL || (KeySize < 5 || KeySize > 256)) {\r
     return FALSE;\r
   }\r
@@ -202,7 +202,7 @@ Arc4Reset (
   if (Arc4Context == NULL) {\r
     return FALSE;\r
   }\r
-  \r
+\r
   Rc4Key = (RC4_KEY *) Arc4Context;\r
 \r
   CopyMem (Rc4Key, Rc4Key + 1, sizeof (RC4_KEY));\r
index 1275e20f8918109d2d4b8d11d74b0f3227829ed3..5b48e445f25088c833da86ff2e5746a444e4aad9 100644 (file)
@@ -1,7 +1,7 @@
-/** @file \r
+/** @file\r
   ARC4 Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -78,7 +78,7 @@ Arc4Encrypt (
   IN      UINTN        InputSize,\r
   OUT     UINT8        *Output\r
   )\r
-{ \r
+{\r
   ASSERT (FALSE);\r
   return FALSE;\r
 }\r
index 01b3f23da7726d25c335608d60eff0ebb006e057..c7510d0ec8541b47cb77e251577a3c83524f539b 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   MD4 Digest Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -103,7 +103,7 @@ Md4Update (
 /**\r
   Completes computation of the MD4 digest value.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[in, out]  Md4Context  Pointer to the MD4 context.\r
   @param[out]      HashValue   Pointer to a buffer that receives the MD4 digest\r
index bfe68ab916b8d6b1ed4497555752b5455d9acc19..4ddd174168c1e57233b95538ca583d00e838ae69 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   HMAC-MD5 Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -72,9 +72,9 @@ HmacMd5Free (
 \r
 /**\r
   Initializes user-supplied memory pointed by HmacMd5Context as HMAC-MD5 context for\r
-  subsequent use. \r
+  subsequent use.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[out]  HmacMd5Context  Pointer to HMAC-MD5 context being initialized.\r
   @param[in]   Key             Pointer to the user-supplied key.\r
index 466c4885c3426b9519122692cc499eb9f43e2e20..a73dff5584896781a4fe60a13b8a46bfd7b595e2 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.  \r
+  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -74,7 +74,7 @@ HmacSha1Free (
   Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for\r
   subsequent use.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[out]  HmacSha1Context  Pointer to HMAC-SHA1 context being initialized.\r
   @param[in]   Key              Pointer to the user-supplied key.\r
@@ -120,7 +120,7 @@ HmacSha1Duplicate (
 /**\r
   Digests the input data and updates HMAC-SHA1 context.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[in, out]  HmacSha1Context Pointer to the HMAC-SHA1 context.\r
   @param[in]       Data            Pointer to the buffer containing the data to be digested.\r
@@ -144,7 +144,7 @@ HmacSha1Update (
 /**\r
   Completes computation of the HMAC-SHA1 digest value.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[in, out]  HmacSha1Context  Pointer to the HMAC-SHA1 context.\r
   @param[out]      HmacValue        Pointer to a buffer that receives the HMAC-SHA1 digest\r
index 0131b5a65eb9c8758dc3c8c17079024f22536272..e7b4b2f61855e2bdc6478f1ac1759c0ab073b506 100644 (file)
@@ -6,11 +6,11 @@
 #  This external input must be validated carefully to avoid security issues such as\r
 #  buffer overflow or integer overflow.\r
 #\r
-#  Note: MD4 Digest functions, \r
+#  Note: MD4 Digest functions,\r
 #  HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 functions, RSA external\r
-#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509 \r
-#  certificate handler functions, authenticode signature verification functions, \r
-#  PEM handler functions, and pseudorandom number generator functions are not \r
+#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509\r
+#  certificate handler functions, authenticode signature verification functions,\r
+#  PEM handler functions, and pseudorandom number generator functions are not\r
 #  supported in this instance.\r
 #\r
 #  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
index 41fdbbd2cd372854d7fd3f82b1accbcfe75a7017..64206e76d8c0b75cb39c256365965a8e112e964f 100644 (file)
@@ -5,20 +5,20 @@
 // This library will have external input - signature.\r
 // This external input must be validated carefully to avoid security issues such as\r
 // buffer overflow or integer overflow.\r
-// \r
+//\r
 // Note: MD4 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, AES/\r
 // TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign functions,\r
 // Diffie-Hellman functions, X.509 certificate handler functions, authenticode\r
 // signature verification functions, PEM handler functions, and pseudorandom number\r
 // generator functions are not supported in this instance.\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 51e648b736a51c9f41d3a24d67a235b937c8f95b..de758ac8547fb3d8fd67db594b545f7f985874a1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PEM (Privacy Enhanced Mail) Format Handler Wrapper Implementation over OpenSSL.\r
 \r
-Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -28,9 +28,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 INTN\r
 PasswordCallback (\r
-  OUT  CHAR8  *Buf, \r
-  IN   INTN   Size, \r
-  IN   INTN   Flag, \r
+  OUT  CHAR8  *Buf,\r
+  IN   INTN   Size,\r
+  IN   INTN   Flag,\r
   IN   VOID   *Key\r
   )\r
 {\r
index 391efd5c14550f16bd9466ad076d2313a3b3bb83..abd581d93f25c8fe907439cad7361ce28c0741d0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Diffie-Hellman Wrapper Implementation over OpenSSL.\r
 \r
-Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -60,7 +60,7 @@ DhFree (
 \r
   Given generator g, and length of prime number p in bits, this function generates p,\r
   and sets DH context according to value of g and p.\r
-  \r
+\r
   Before this function can be invoked, pseudorandom number generator must be correctly\r
   initialized by RandomSeed().\r
 \r
@@ -178,7 +178,7 @@ Error:
 /**\r
   Generates DH public key.\r
 \r
-  This function generates random secret exponent, and computes the public key, which is \r
+  This function generates random secret exponent, and computes the public key, which is\r
   returned via parameter PublicKey and PublicKeySize. DH context is updated accordingly.\r
   If the PublicKey buffer is too small to hold the public key, FALSE is returned and\r
   PublicKeySize is set to the required buffer size to obtain the public key.\r
@@ -245,7 +245,7 @@ DhGenerateKey (
   Computes exchanged common key.\r
 \r
   Given peer's public key, this function computes the exchanged common key, based on its own\r
-  context including value of prime modulus and random secret exponent. \r
+  context including value of prime modulus and random secret exponent.\r
 \r
   If DhContext is NULL, then return FALSE.\r
   If PeerPublicKey is NULL, then return FALSE.\r
@@ -288,7 +288,7 @@ DhComputeKey (
   if (PeerPublicKeySize > INT_MAX) {\r
     return FALSE;\r
   }\r
-  \r
+\r
   Bn = BN_bin2bn (PeerPublicKey, (UINT32) PeerPublicKeySize, NULL);\r
   if (Bn == NULL) {\r
     return FALSE;\r
index 35045db3c8efb7adc79da30ce37d9e0fc3d2e38e..4def5171627a17b44c114e675ee2f9e717e68592 100644 (file)
@@ -2,7 +2,7 @@
   Diffie-Hellman Wrapper Implementation which does not provide\r
   real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -98,7 +98,7 @@ DhSetParameter (
   )\r
 {\r
   ASSERT (FALSE);\r
-  return FALSE; \r
+  return FALSE;\r
 }\r
 \r
 /**\r
index 0f61d4b4ad4b9ce1f6b919e95c26100fae24cf16..bc804015624d91468e02b12d03b60f202ac23113 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PKCS#7 SignedData Sign Wrapper Implementation over OpenSSL.\r
 \r
-Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -121,7 +121,7 @@ Pkcs7Sign (
   }\r
 \r
   //\r
-  // Convert the data to be signed to BIO format. \r
+  // Convert the data to be signed to BIO format.\r
   //\r
   DataBio = BIO_new (BIO_s_mem ());\r
   if (DataBio == NULL) {\r
index 5490b1f3d66d903b471b0614bd7805d6c126f29d..f2a1a620ada41b175e9b24a36ccea231f6dc4b47 100644 (file)
@@ -2,7 +2,7 @@
   PKCS#7 SignedData Verification Wrapper Implementation which does not provide\r
   real capabilities.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -56,7 +56,7 @@ Pkcs7GetSigners (
   Wrap function to use free() to free allocated memory for certificates.\r
 \r
   If the interface is not supported, then ASSERT().\r
-  \r
+\r
   @param[in]  Certs        Pointer to the certificates to be freed.\r
 \r
 **/\r
index ba1bcf0f0b1f077554408b1acbb555453dd81001..a86e0629b8b29f75b06cf1f2318a3c31837f32b2 100644 (file)
@@ -7,7 +7,7 @@
   3) RsaSetKey\r
   4) RsaPkcs1Verify\r
 \r
-Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -294,7 +294,7 @@ RsaPkcs1Verify (
 \r
   //\r
   // Determine the message digest algorithm according to digest size.\r
-  //   Only MD5, SHA-1 or SHA-256 algorithm is supported. \r
+  //   Only MD5, SHA-1 or SHA-256 algorithm is supported.\r
   //\r
   switch (HashSize) {\r
   case MD5_DIGEST_SIZE:\r
index ca32b1ecc30002f0c06a8eb490f91feb1cbdaf05..51f045669620fb5938fc6c49621f58f74ac68cd4 100644 (file)
@@ -7,7 +7,7 @@
   3) RsaCheckKey\r
   4) RsaPkcs1Sign\r
 \r
-Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -174,7 +174,7 @@ RsaGetKey (
   @param[in, out]  RsaContext           Pointer to RSA context being set.\r
   @param[in]       ModulusLength        Length of RSA modulus N in bits.\r
   @param[in]       PublicExponent       Pointer to RSA public exponent.\r
-  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes. \r
+  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes.\r
 \r
   @retval  TRUE   RSA key component was generated successfully.\r
   @retval  FALSE  Invalid RSA key component tag.\r
@@ -226,7 +226,7 @@ _Exit:
 }\r
 \r
 /**\r
-  Validates key components of RSA context. \r
+  Validates key components of RSA context.\r
   NOTE: This function performs integrity checks on all the RSA key material, so\r
         the RSA key structure must contain all the private key data.\r
 \r
@@ -332,7 +332,7 @@ RsaPkcs1Sign (
 \r
   //\r
   // Determine the message digest algorithm according to digest size.\r
-  //   Only MD5, SHA-1 or SHA-256 algorithm is supported. \r
+  //   Only MD5, SHA-1 or SHA-256 algorithm is supported.\r
   //\r
   switch (HashSize) {\r
   case MD5_DIGEST_SIZE:\r
index e44cdde44f07b2d701313ecd56757d717309b7f5..b72079a8d5c62b5a5c0b233ae812c3b7550d485d 100644 (file)
@@ -7,7 +7,7 @@
   3) RsaCheckKey\r
   4) RsaPkcs1Sign\r
 \r
-Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -55,7 +55,7 @@ RsaGetKey (
   @param[in, out]  RsaContext           Pointer to RSA context being set.\r
   @param[in]       ModulusLength        Length of RSA modulus N in bits.\r
   @param[in]       PublicExponent       Pointer to RSA public exponent.\r
-  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes. \r
+  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes.\r
 \r
   @retval FALSE  This interface is not supported.\r
 \r
index c137df357f4b01ffc16ee91ef95fa5f3e9e342b4..75337ed32bbc21ed0034078e79e0ba96980c6b41 100644 (file)
@@ -318,7 +318,7 @@ _Exit:
                                    If Certificate is invalid.\r
   @retval RETURN_NOT_FOUND         If no CommonName entry exists.\r
   @retval RETURN_BUFFER_TOO_SMALL  If the CommonName is NULL. The required buffer size\r
-                                   (including the final null) is returned in the \r
+                                   (including the final null) is returned in the\r
                                    CommonNameSize parameter.\r
   @retval RETURN_UNSUPPORTED       The operation is not supported.\r
 \r
index d86c784a7f284c9a9c43ec67faa31a3bf7240ded..31cae46154617592698ad629e4872c6bae6a30dd 100644 (file)
@@ -50,7 +50,7 @@ X509ConstructCertificate (
   @param           ...        A list of DER-encoded single certificate data followed\r
                               by certificate size. A NULL terminates the list. The\r
                               pairs are the arguments to X509ConstructCertificate().\r
-                                 \r
+\r
   @retval FALSE  This interface is not supported.\r
 \r
 **/\r
@@ -58,7 +58,7 @@ BOOLEAN
 EFIAPI\r
 X509ConstructCertificateStack (\r
   IN OUT  UINT8  **X509Stack,\r
-  ...  \r
+  ...\r
   )\r
 {\r
   ASSERT (FALSE);\r
@@ -78,7 +78,7 @@ EFIAPI
 X509Free (\r
   IN  VOID  *X509Cert\r
   )\r
-{ \r
+{\r
   ASSERT (FALSE);\r
 }\r
 \r
@@ -196,7 +196,7 @@ RsaGetPublicKeyFromX509 (
   @param[in]      CACertSize   Size of the CA Certificate in bytes.\r
 \r
   @retval FALSE  This interface is not supported.\r
\r
+\r
 **/\r
 BOOLEAN\r
 EFIAPI\r
index 3db5157a3778253752e15955104e074b3d19e21d..26c943e4aa8e831c605277ebcf8742607da3886c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Pseudorandom Number Generator Wrapper Implementation over OpenSSL.\r
 \r
-Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -69,7 +69,7 @@ RandomSeed (
       sizeof (DefaultSeed),\r
       "UEFI Crypto Library default seed (%ld)",\r
       AsmReadItc ()\r
-      ); \r
+      );\r
 \r
     RAND_seed (DefaultSeed, sizeof (DefaultSeed));\r
   }\r
index 15f0b3fecaa3d7ba56a0d61fe58a1f6ec331f899..74d9cbca2f89d4a42408f3903533b89decab82a1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Pseudorandom Number Generator Wrapper Implementation over OpenSSL.\r
 \r
-Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -69,7 +69,7 @@ RandomSeed (
       sizeof (DefaultSeed),\r
       "UEFI Crypto Library default seed (%ld)",\r
       AsmReadTsc ()\r
-      ); \r
+      );\r
 \r
     RAND_seed (DefaultSeed, sizeof (DefaultSeed));\r
   }\r
index 05cd31674f0852bc58f753202bad302416b98fcf..44a97fd1144160e356441994d35ab0ff4bdc6272 100644 (file)
@@ -8,10 +8,10 @@
 #\r
 #  Note: MD4 Digest functions, SHA-384 Digest functions, SHA-512 Digest functions,\r
 #  HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 functions, RSA external\r
-#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and \r
+#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and\r
 #  authenticode signature verification functions are not supported in this instance.\r
 #\r
-#  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
index 593faa7b060a6326b670813c7fde836f793353cd..5fbe078d96482a24ecf54f29284e8483843526e6 100644 (file)
@@ -5,19 +5,19 @@
 // This library will have external input - signature.\r
 // This external input must be validated carefully to avoid security issues such as\r
 // buffer overflow or integer overflow.\r
-// \r
+//\r
 // Note: MD4 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, AES/\r
 // TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign functions,\r
 // Diffie-Hellman functions, and authenticode signature verification functions are\r
 // not supported in this instance.\r
 //\r
-// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 36552bc4f47c2429f53fa713cdbaa0a750228472..38328cc5aa9da3682f21f1d20e392de0e3305704 100644 (file)
@@ -8,10 +8,10 @@
 #\r
 #  Note: MD4 Digest functions, SHA-384 Digest functions, SHA-512 Digest functions,\r
 #  HMAC-MD5 functions, HMAC-SHA1 functions, TDES/ARC4 functions, RSA external\r
-#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and \r
+#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and\r
 #  authenticode signature verification functions are not supported in this instance.\r
 #\r
-#  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
index 9b2df9858262c1a49e31a4a9ec177917e7327e9e..d945034ef5e6e116e09584b7226dd450991b1ce9 100644 (file)
@@ -5,19 +5,19 @@
 // This library will have external input - signature.\r
 // This external input must be validated carefully to avoid security issues such as\r
 // buffer overflow or integer overflow.\r
-// \r
+//\r
 // Note: MD4 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, AES/\r
 // TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign functions,\r
 // Diffie-Hellman functions, and authenticode signature verification functions are\r
 // not supported in this instance.\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index cdf3b60b9f82aa525d48db70ed548f0e5b951095..5f9b0c20d75d63f030e8fea540ac8800c1ad582c 100644 (file)
@@ -62,7 +62,7 @@ UINTN CumulativeDays[2][14] = {
     31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30,\r
     31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31,\r
     31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30,\r
-    31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 \r
+    31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31\r
   }\r
 };\r
 \r
@@ -96,12 +96,12 @@ time_t time (time_t *timer)
   //\r
   // Add in number of seconds for current Month, Day, Hour, Minute, Seconds, and TimeZone adjustment\r
   //\r
-  CalTime = CalTime + \r
+  CalTime = CalTime +\r
             (time_t)((Time.TimeZone != EFI_UNSPECIFIED_TIMEZONE) ? (Time.TimeZone * 60) : 0) +\r
-            (time_t)(CumulativeDays[IsLeap(Time.Year)][Time.Month] * SECSPERDAY) + \r
-            (time_t)(((Time.Day > 0) ? Time.Day - 1 : 0) * SECSPERDAY) + \r
-            (time_t)(Time.Hour * SECSPERHOUR) + \r
-            (time_t)(Time.Minute * 60) + \r
+            (time_t)(CumulativeDays[IsLeap(Time.Year)][Time.Month] * SECSPERDAY) +\r
+            (time_t)(((Time.Day > 0) ? Time.Day - 1 : 0) * SECSPERDAY) +\r
+            (time_t)(Time.Hour * SECSPERHOUR) +\r
+            (time_t)(Time.Minute * 60) +\r
             (time_t)Time.Second;\r
 \r
   if (timer != NULL) {\r
index 1e840a5d1ef9f2e0a9aef39a2e5ece6b41c69e04..bf2d87925c2972167818654f80ee29d59cd5cb23 100644 (file)
@@ -2,22 +2,22 @@
 #  Cryptographic Library Instance based on Runtime Crypt Protocol.\r
 #  This instance will be only used by the Authenticated Variable driver for IPF.\r
 #\r
-#  Note: MD4/MD5/SHA1 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, \r
+#  Note: MD4/MD5/SHA1 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions,\r
 #  AES/TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign/verify\r
 #  functions, Diffie-Hellman functions, X.509 certificate handler functions,\r
 #  authenticode signature verification functions, PEM handler functions,\r
 #  pseudorandom number generator functions, and Sha256Duplicate() are not supported\r
 #  in this instance.\r
 #\r
-#  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
index 533fffa8c37373f0ddfa055e836ffc0199a72e5f..1f39c2efdf1a6eacb0b4b49eb4d04c88c281e804 100644 (file)
@@ -2,7 +2,7 @@
 // Cryptographic Library Instance based on Runtime Crypt Protocol.\r
 //\r
 // This instance will be only used by the Authenticated Variable driver for IPF.\r
-// \r
+//\r
 // Note: MD4/MD5/SHA1 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions,\r
 // AES/TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign/verify\r
 // functions, Diffie-Hellman functions, X.509 certificate handler functions,\r
 // pseudorandom number generator functions, and Sha256Duplicate() are not supported\r
 // in this instance.\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 074b07247b452c4923d7e42201e56115b28251ea..6e3acf5e78f742a68d270f5dd7859f57c870ceee 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  AES Wrapper Implementation which does not provide real capabilities.  \r
-  \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+  AES Wrapper Implementation which does not provide real capabilities.\r
+\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -60,12 +60,12 @@ AesInit (
   Performs AES encryption on a data buffer of the specified size in ECB mode.\r
 \r
   Return FALSE to indicate this interface is not supported.\r
-  \r
+\r
   @param[in]   AesContext  Pointer to the AES context.\r
   @param[in]   Input       Pointer to the buffer containing the data to be encrypted.\r
   @param[in]   InputSize   Size of the Input buffer in bytes.\r
   @param[out]  Output      Pointer to a buffer that receives the AES encryption output.\r
-  \r
+\r
   @retval FALSE  This interface is not supported.\r
 \r
 **/\r
@@ -159,7 +159,7 @@ AesCbcDecrypt (
   IN   CONST UINT8  *Ivec,\r
   OUT  UINT8        *Output\r
   )\r
-{  \r
+{\r
   ASSERT (FALSE);\r
   return FALSE;\r
 }\r
index 1275e20f8918109d2d4b8d11d74b0f3227829ed3..5b48e445f25088c833da86ff2e5746a444e4aad9 100644 (file)
@@ -1,7 +1,7 @@
-/** @file \r
+/** @file\r
   ARC4 Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -78,7 +78,7 @@ Arc4Encrypt (
   IN      UINTN        InputSize,\r
   OUT     UINT8        *Output\r
   )\r
-{ \r
+{\r
   ASSERT (FALSE);\r
   return FALSE;\r
 }\r
index fc634fd163878f9aba1bc931f47fe8c26e91ad09..6327d983a9cf35c1b7a8b52914a06d8596a996c2 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   MD4 Digest Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -103,7 +103,7 @@ Md4Update (
 /**\r
   Completes computation of the MD4 digest value.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[in, out]  Md4Context  Pointer to the MD4 context.\r
   @param[out]      HashValue   Pointer to a buffer that receives the MD4 digest\r
index 7054365e80b776dfc8424ce94572f820a53898d3..7d7aac52d2f618c9ecc2524986a77c3bcca764ab 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   SHA-1 Digest Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -31,7 +31,7 @@ Sha1GetContextSize (
   )\r
 {\r
   ASSERT (FALSE);\r
-  return 0;  \r
+  return 0;\r
 }\r
 \r
 /**\r
@@ -39,7 +39,7 @@ Sha1GetContextSize (
   subsequent use.\r
 \r
   Return FALSE to indicate this interface is not supported.\r
-  \r
+\r
   @param[out]  Sha1Context  Pointer to SHA-1 context being initialized.\r
 \r
   @retval FALSE  This interface is not supported.\r
index b4bdde0433a541fe51170256064ee4b989fe75fa..b09b5a8731ac25bbe3df8aceec4d70d27e55beed 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   HMAC-MD5 Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -34,9 +34,9 @@ HmacMd5GetContextSize (
 \r
 /**\r
   Initializes user-supplied memory pointed by HmacMd5Context as HMAC-MD5 context for\r
-  subsequent use. \r
+  subsequent use.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[out]  HmacMd5Context  Pointer to HMAC-MD5 context being initialized.\r
   @param[in]   Key             Pointer to the user-supplied key.\r
index b31d0d1402dcceef84365d2264cc734c60d41124..97403ee00b76b548ece66c09e400485d706f3eb5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.  \r
+  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -36,7 +36,7 @@ HmacSha1GetContextSize (
   Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for\r
   subsequent use.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[out]  HmacSha1Context  Pointer to HMAC-SHA1 context being initialized.\r
   @param[in]   Key              Pointer to the user-supplied key.\r
@@ -82,7 +82,7 @@ HmacSha1Duplicate (
 /**\r
   Digests the input data and updates HMAC-SHA1 context.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[in, out]  HmacSha1Context Pointer to the HMAC-SHA1 context.\r
   @param[in]       Data            Pointer to the buffer containing the data to be digested.\r
@@ -106,7 +106,7 @@ HmacSha1Update (
 /**\r
   Completes computation of the HMAC-SHA1 digest value.\r
 \r
-  Return FALSE to indicate this interface is not supported.  \r
+  Return FALSE to indicate this interface is not supported.\r
 \r
   @param[in, out]  HmacSha1Context  Pointer to the HMAC-SHA1 context.\r
   @param[out]      HmacValue        Pointer to a buffer that receives the HMAC-SHA1 digest\r
index 24c767ced65a7a2364fcde05fc8d098e9b974f56..45144abd0a446e061d8c2c051558fc722e733556 100644 (file)
@@ -1,7 +1,7 @@
-/** @file  \r
+/** @file\r
   Internal include file for BaseCryptLibRuntimeCryptProtocol.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
index 35045db3c8efb7adc79da30ce37d9e0fc3d2e38e..4def5171627a17b44c114e675ee2f9e717e68592 100644 (file)
@@ -2,7 +2,7 @@
   Diffie-Hellman Wrapper Implementation which does not provide\r
   real capabilities.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -98,7 +98,7 @@ DhSetParameter (
   )\r
 {\r
   ASSERT (FALSE);\r
-  return FALSE; \r
+  return FALSE;\r
 }\r
 \r
 /**\r
index 06602ec53572a39f1bb6cf892333b4edf243659a..ae1c13c23ee3105fe5bae4bba64f73280b596407 100644 (file)
@@ -2,7 +2,7 @@
   PKCS#7 SignedData Verification Wrapper Implementation which does not provide\r
   real capabilities.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -53,7 +53,7 @@ Pkcs7GetSigners (
   Wrap function to use free() to free allocated memory for certificates.\r
 \r
   If the interface is not supported, then ASSERT().\r
-  \r
+\r
   @param[in]  Certs        Pointer to the certificates to be freed.\r
 \r
 **/\r
index e44cdde44f07b2d701313ecd56757d717309b7f5..b72079a8d5c62b5a5c0b233ae812c3b7550d485d 100644 (file)
@@ -7,7 +7,7 @@
   3) RsaCheckKey\r
   4) RsaPkcs1Sign\r
 \r
-Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -55,7 +55,7 @@ RsaGetKey (
   @param[in, out]  RsaContext           Pointer to RSA context being set.\r
   @param[in]       ModulusLength        Length of RSA modulus N in bits.\r
   @param[in]       PublicExponent       Pointer to RSA public exponent.\r
-  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes. \r
+  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes.\r
 \r
   @retval FALSE  This interface is not supported.\r
 \r
index d00f38daa83f8dc0fd2b31eb5acfaf62748af5fa..f95a2c0a890ef140f0448d8fc371806db03d9866 100644 (file)
@@ -2,7 +2,7 @@
   X.509 Certificate Handler Wrapper Implementation which does not provide\r
   real capabilities.\r
 \r
-Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -50,7 +50,7 @@ X509ConstructCertificate (
   @param           ...        A list of DER-encoded single certificate data followed\r
                               by certificate size. A NULL terminates the list. The\r
                               pairs are the arguments to X509ConstructCertificate().\r
-                                 \r
+\r
   @retval FALSE  This interface is not supported.\r
 \r
 **/\r
@@ -58,7 +58,7 @@ BOOLEAN
 EFIAPI\r
 X509ConstructCertificateStack (\r
   IN OUT  UINT8  **X509Stack,\r
-  ...  \r
+  ...\r
   )\r
 {\r
   ASSERT (FALSE);\r
@@ -78,7 +78,7 @@ EFIAPI
 X509Free (\r
   IN  VOID  *X509Cert\r
   )\r
-{ \r
+{\r
   ASSERT (FALSE);\r
 }\r
 \r
@@ -196,7 +196,7 @@ RsaGetPublicKeyFromX509 (
   @param[in]      CACertSize   Size of the CA Certificate in bytes.\r
 \r
   @retval FALSE  This interface is not supported.\r
\r
+\r
 **/\r
 BOOLEAN\r
 EFIAPI\r
index c40b856a4942f8a978edb30d279a15bce6f44471..6732df9cefa8d2acf9a9e8e419edf3afdcca3773 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // This module is intrinsic routines wrapper library instance.\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index e095f9aa0dd64c20a6b96a190f8ee14f9b492780..324381b6e9c255cefd3407df04efbfd8fac44923 100644 (file)
@@ -2,7 +2,7 @@
   Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based\r
   Cryptographic Library.\r
 \r
-Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -28,8 +28,8 @@ void * memset (void *dest, int ch, size_t count)
 {\r
   //\r
   // NOTE: Here we use one base implementation for memset, instead of the direct\r
-  //       optimized SetMem() wrapper. Because the IntrinsicLib has to be built \r
-  //       without whole program optimization option, and there will be some \r
+  //       optimized SetMem() wrapper. Because the IntrinsicLib has to be built\r
+  //       without whole program optimization option, and there will be some\r
   //       potential register usage errors when calling other optimized codes.\r
   //\r
 \r
@@ -44,7 +44,7 @@ void * memset (void *dest, int ch, size_t count)
   while (count-- != 0) {\r
     *(Pointer++) = (UINT8)ch;\r
   }\r
-  \r
+\r
   return dest;\r
 }\r
 \r
index 0dffec1c98a3b9a9fb700f0882ac7f3ca05f9522..6aba8479f838cc0b0bbc053b1d3660bc0f3e4096 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // This module provides OpenSSL Library implementation.\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 7891b135953bd1396b8ec424c1e2881931858243..10a5b7f3ae74def53453f23f482905c7981e75c5 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // This module provides OpenSSL Library implementation (libcrypto only, no libssl).\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r