Browse Source

CryptoPkg: Clean up source files

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>
Liming Gao 6 years ago
parent
commit
630f67ddfe
51 changed files with 151 additions and 151 deletions
  1. 4 4
      CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf
  2. 2 2
      CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.uni
  3. 3 3
      CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni
  4. 3 3
      CryptoPkg/CryptoPkg.dsc
  5. 2 2
      CryptoPkg/CryptoPkg.uni
  6. 3 3
      CryptoPkg/CryptoPkgExtra.uni
  7. 1 1
      CryptoPkg/Include/Library/BaseCryptLib.h
  8. 2 2
      CryptoPkg/Library/BaseCryptLib/BaseCryptLib.uni
  9. 2 2
      CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c
  10. 6 6
      CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c
  11. 3 3
      CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c
  12. 3 3
      CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c
  13. 2 2
      CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c
  14. 3 3
      CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c
  15. 5 5
      CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c
  16. 4 4
      CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
  17. 3 3
      CryptoPkg/Library/BaseCryptLib/PeiCryptLib.uni
  18. 4 4
      CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c
  19. 5 5
      CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c
  20. 2 2
      CryptoPkg/Library/BaseCryptLib/Pk/CryptDhNull.c
  21. 2 2
      CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Sign.c
  22. 2 2
      CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyNull.c
  23. 2 2
      CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c
  24. 4 4
      CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c
  25. 2 2
      CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c
  26. 1 1
      CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
  27. 4 4
      CryptoPkg/Library/BaseCryptLib/Pk/CryptX509Null.c
  28. 2 2
      CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c
  29. 2 2
      CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c
  30. 2 2
      CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  31. 3 3
      CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.uni
  32. 2 2
      CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  33. 3 3
      CryptoPkg/Library/BaseCryptLib/SmmCryptLib.uni
  34. 6 6
      CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c
  35. 4 4
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf
  36. 3 3
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.uni
  37. 6 6
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptAesNull.c
  38. 3 3
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptArc4Null.c
  39. 2 2
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptMd4Null.c
  40. 3 3
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptSha1Null.c
  41. 3 3
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacMd5Null.c
  42. 5 5
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacSha1Null.c
  43. 2 2
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h
  44. 2 2
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptDhNull.c
  45. 2 2
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptPkcs7VerifyNull.c
  46. 2 2
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptRsaExtNull.c
  47. 5 5
      CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptX509Null.c
  48. 2 2
      CryptoPkg/Library/IntrinsicLib/BaseIntrinsicLib.uni
  49. 4 4
      CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c
  50. 2 2
      CryptoPkg/Library/OpensslLib/OpensslLib.uni
  51. 2 2
      CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni

+ 4 - 4
CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf

@@ -1,15 +1,15 @@
 ## @file
 #  This driver installs runtime Crypt protocol to provide SHA256 and RSA service.
 #
-#  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 #  This program and the accompanying materials
 #  are licensed and made available under the terms and conditions of the BSD License
 #  which accompanies this distribution.  The full text of the license may be found at
 #  http://opensource.org/licenses/bsd-license.php
-#  
+#
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#  
+#
 ##
 
 [Defines]
@@ -51,4 +51,4 @@
 
 [UserExtensions.TianoCore."ExtraFiles"]
   CryptRuntimeDxeExtra.uni
-  
+

+ 2 - 2
CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.uni

@@ -3,13 +3,13 @@
 //
 // This driver installs runtime Crypt protocol to provide SHA256 and RSA service.
 //
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 3 - 3
CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni

@@ -1,7 +1,7 @@
 // /** @file
 // CryptRuntimeDxe Localized Strings and Content
 //
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
@@ -13,8 +13,8 @@
 //
 // **/
 
-#string STR_PROPERTIES_MODULE_NAME 
-#language en-US 
+#string STR_PROPERTIES_MODULE_NAME
+#language en-US
 "CryptRuntimeDxe module"
 
 

+ 3 - 3
CryptoPkg/CryptoPkg.dsc

@@ -6,10 +6,10 @@
 #  are licensed and made available under the terms and conditions of the BSD License
 #  which accompanies this distribution.  The full text of the license may be found at
 #  http://opensource.org/licenses/bsd-license.php
-#  
+#
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#  
+#
 ##
 
 ################################################################################
@@ -38,7 +38,7 @@
   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
-  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf  
+  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
   PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
   UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
   DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf

+ 2 - 2
CryptoPkg/CryptoPkg.uni

@@ -4,13 +4,13 @@
 // This Package provides cryptographic-related libraries for UEFI security modules.
 // It also provides a test application to test libraries.
 //
-// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 3 - 3
CryptoPkg/CryptoPkgExtra.uni

@@ -1,7 +1,7 @@
 // /** @file
 // Crypto Package Localized Strings and Content.
 //
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
@@ -13,8 +13,8 @@
 //
 // **/
 
-#string STR_PROPERTIES_PACKAGE_NAME 
-#language en-US 
+#string STR_PROPERTIES_PACKAGE_NAME
+#language en-US
 "Crypto package"
 
 

+ 1 - 1
CryptoPkg/Include/Library/BaseCryptLib.h

@@ -2192,7 +2192,7 @@ X509GetSubjectName (
                                    If Certificate is invalid.
   @retval RETURN_NOT_FOUND         If no CommonName entry exists.
   @retval RETURN_BUFFER_TOO_SMALL  If the CommonName is NULL. The required buffer size
-                                   (including the final null) is returned in the 
+                                   (including the final null) is returned in the
                                    CommonNameSize parameter.
   @retval RETURN_UNSUPPORTED       The operation is not supported.
 

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/BaseCryptLib.uni

@@ -6,13 +6,13 @@
 // This external input must be validated carefully to avoid security issues such as
 // buffer overflow or integer overflow.
 //
-// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c

@@ -1,7 +1,7 @@
 /** @file
   AES Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -125,7 +125,7 @@ AesEcbEncrypt (
   if (AesContext == NULL || Input == NULL || (InputSize % AES_BLOCK_SIZE) != 0 || Output == NULL) {
     return FALSE;
   }
-  
+
   AesKey = (AES_KEY *) AesContext;
 
   //

+ 6 - 6
CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c

@@ -1,7 +1,7 @@
 /** @file
-  AES Wrapper Implementation which does not provide real capabilities.  
-  
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+  AES Wrapper Implementation which does not provide real capabilities.
+
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -60,12 +60,12 @@ AesInit (
   Performs AES encryption on a data buffer of the specified size in ECB mode.
 
   Return FALSE to indicate this interface is not supported.
-  
+
   @param[in]   AesContext  Pointer to the AES context.
   @param[in]   Input       Pointer to the buffer containing the data to be encrypted.
   @param[in]   InputSize   Size of the Input buffer in bytes.
   @param[out]  Output      Pointer to a buffer that receives the AES encryption output.
-  
+
   @retval FALSE  This interface is not supported.
 
 **/
@@ -159,7 +159,7 @@ AesCbcDecrypt (
   IN   CONST UINT8  *Ivec,
   OUT  UINT8        *Output
   )
-{  
+{
   ASSERT (FALSE);
   return FALSE;
 }

+ 3 - 3
CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c

@@ -1,7 +1,7 @@
 /** @file
   ARC4 Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -66,7 +66,7 @@ Arc4Init (
 
   //
   // Check input parameters.
-  //  
+  //
   if (Arc4Context == NULL || Key == NULL || (KeySize < 5 || KeySize > 256)) {
     return FALSE;
   }
@@ -202,7 +202,7 @@ Arc4Reset (
   if (Arc4Context == NULL) {
     return FALSE;
   }
-  
+
   Rc4Key = (RC4_KEY *) Arc4Context;
 
   CopyMem (Rc4Key, Rc4Key + 1, sizeof (RC4_KEY));

+ 3 - 3
CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c

@@ -1,7 +1,7 @@
-/** @file 
+/** @file
   ARC4 Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -78,7 +78,7 @@ Arc4Encrypt (
   IN      UINTN        InputSize,
   OUT     UINT8        *Output
   )
-{ 
+{
   ASSERT (FALSE);
   return FALSE;
 }

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c

@@ -1,7 +1,7 @@
 /** @file
   MD4 Digest Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -103,7 +103,7 @@ Md4Update (
 /**
   Completes computation of the MD4 digest value.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[in, out]  Md4Context  Pointer to the MD4 context.
   @param[out]      HashValue   Pointer to a buffer that receives the MD4 digest

+ 3 - 3
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c

@@ -1,7 +1,7 @@
 /** @file
   HMAC-MD5 Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -72,9 +72,9 @@ HmacMd5Free (
 
 /**
   Initializes user-supplied memory pointed by HmacMd5Context as HMAC-MD5 context for
-  subsequent use. 
+  subsequent use.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[out]  HmacMd5Context  Pointer to HMAC-MD5 context being initialized.
   @param[in]   Key             Pointer to the user-supplied key.

+ 5 - 5
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c

@@ -1,7 +1,7 @@
 /** @file
-  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.  
+  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -74,7 +74,7 @@ HmacSha1Free (
   Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for
   subsequent use.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[out]  HmacSha1Context  Pointer to HMAC-SHA1 context being initialized.
   @param[in]   Key              Pointer to the user-supplied key.
@@ -120,7 +120,7 @@ HmacSha1Duplicate (
 /**
   Digests the input data and updates HMAC-SHA1 context.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[in, out]  HmacSha1Context Pointer to the HMAC-SHA1 context.
   @param[in]       Data            Pointer to the buffer containing the data to be digested.
@@ -144,7 +144,7 @@ HmacSha1Update (
 /**
   Completes computation of the HMAC-SHA1 digest value.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[in, out]  HmacSha1Context  Pointer to the HMAC-SHA1 context.
   @param[out]      HmacValue        Pointer to a buffer that receives the HMAC-SHA1 digest

+ 4 - 4
CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf

@@ -6,11 +6,11 @@
 #  This external input must be validated carefully to avoid security issues such as
 #  buffer overflow or integer overflow.
 #
-#  Note: MD4 Digest functions, 
+#  Note: MD4 Digest functions,
 #  HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 functions, RSA external
-#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509 
-#  certificate handler functions, authenticode signature verification functions, 
-#  PEM handler functions, and pseudorandom number generator functions are not 
+#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509
+#  certificate handler functions, authenticode signature verification functions,
+#  PEM handler functions, and pseudorandom number generator functions are not
 #  supported in this instance.
 #
 #  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>

+ 3 - 3
CryptoPkg/Library/BaseCryptLib/PeiCryptLib.uni

@@ -5,20 +5,20 @@
 // This library will have external input - signature.
 // This external input must be validated carefully to avoid security issues such as
 // buffer overflow or integer overflow.
-// 
+//
 // Note: MD4 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, AES/
 // TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign functions,
 // Diffie-Hellman functions, X.509 certificate handler functions, authenticode
 // signature verification functions, PEM handler functions, and pseudorandom number
 // generator functions are not supported in this instance.
 //
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 4 - 4
CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c

@@ -1,7 +1,7 @@
 /** @file
   PEM (Privacy Enhanced Mail) Format Handler Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -28,9 +28,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/
 INTN
 PasswordCallback (
-  OUT  CHAR8  *Buf, 
-  IN   INTN   Size, 
-  IN   INTN   Flag, 
+  OUT  CHAR8  *Buf,
+  IN   INTN   Size,
+  IN   INTN   Flag,
   IN   VOID   *Key
   )
 {

+ 5 - 5
CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c

@@ -1,7 +1,7 @@
 /** @file
   Diffie-Hellman Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -60,7 +60,7 @@ DhFree (
 
   Given generator g, and length of prime number p in bits, this function generates p,
   and sets DH context according to value of g and p.
-  
+
   Before this function can be invoked, pseudorandom number generator must be correctly
   initialized by RandomSeed().
 
@@ -178,7 +178,7 @@ Error:
 /**
   Generates DH public key.
 
-  This function generates random secret exponent, and computes the public key, which is 
+  This function generates random secret exponent, and computes the public key, which is
   returned via parameter PublicKey and PublicKeySize. DH context is updated accordingly.
   If the PublicKey buffer is too small to hold the public key, FALSE is returned and
   PublicKeySize is set to the required buffer size to obtain the public key.
@@ -245,7 +245,7 @@ DhGenerateKey (
   Computes exchanged common key.
 
   Given peer's public key, this function computes the exchanged common key, based on its own
-  context including value of prime modulus and random secret exponent. 
+  context including value of prime modulus and random secret exponent.
 
   If DhContext is NULL, then return FALSE.
   If PeerPublicKey is NULL, then return FALSE.
@@ -288,7 +288,7 @@ DhComputeKey (
   if (PeerPublicKeySize > INT_MAX) {
     return FALSE;
   }
-  
+
   Bn = BN_bin2bn (PeerPublicKey, (UINT32) PeerPublicKeySize, NULL);
   if (Bn == NULL) {
     return FALSE;

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Pk/CryptDhNull.c

@@ -2,7 +2,7 @@
   Diffie-Hellman Wrapper Implementation which does not provide
   real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -98,7 +98,7 @@ DhSetParameter (
   )
 {
   ASSERT (FALSE);
-  return FALSE; 
+  return FALSE;
 }
 
 /**

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Sign.c

@@ -1,7 +1,7 @@
 /** @file
   PKCS#7 SignedData Sign Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -121,7 +121,7 @@ Pkcs7Sign (
   }
 
   //
-  // Convert the data to be signed to BIO format. 
+  // Convert the data to be signed to BIO format.
   //
   DataBio = BIO_new (BIO_s_mem ());
   if (DataBio == NULL) {

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyNull.c

@@ -2,7 +2,7 @@
   PKCS#7 SignedData Verification Wrapper Implementation which does not provide
   real capabilities.
 
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -56,7 +56,7 @@ Pkcs7GetSigners (
   Wrap function to use free() to free allocated memory for certificates.
 
   If the interface is not supported, then ASSERT().
-  
+
   @param[in]  Certs        Pointer to the certificates to be freed.
 
 **/

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c

@@ -7,7 +7,7 @@
   3) RsaSetKey
   4) RsaPkcs1Verify
 
-Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -294,7 +294,7 @@ RsaPkcs1Verify (
 
   //
   // Determine the message digest algorithm according to digest size.
-  //   Only MD5, SHA-1 or SHA-256 algorithm is supported. 
+  //   Only MD5, SHA-1 or SHA-256 algorithm is supported.
   //
   switch (HashSize) {
   case MD5_DIGEST_SIZE:

+ 4 - 4
CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c

@@ -7,7 +7,7 @@
   3) RsaCheckKey
   4) RsaPkcs1Sign
 
-Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -174,7 +174,7 @@ RsaGetKey (
   @param[in, out]  RsaContext           Pointer to RSA context being set.
   @param[in]       ModulusLength        Length of RSA modulus N in bits.
   @param[in]       PublicExponent       Pointer to RSA public exponent.
-  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes. 
+  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes.
 
   @retval  TRUE   RSA key component was generated successfully.
   @retval  FALSE  Invalid RSA key component tag.
@@ -226,7 +226,7 @@ _Exit:
 }
 
 /**
-  Validates key components of RSA context. 
+  Validates key components of RSA context.
   NOTE: This function performs integrity checks on all the RSA key material, so
         the RSA key structure must contain all the private key data.
 
@@ -332,7 +332,7 @@ RsaPkcs1Sign (
 
   //
   // Determine the message digest algorithm according to digest size.
-  //   Only MD5, SHA-1 or SHA-256 algorithm is supported. 
+  //   Only MD5, SHA-1 or SHA-256 algorithm is supported.
   //
   switch (HashSize) {
   case MD5_DIGEST_SIZE:

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c

@@ -7,7 +7,7 @@
   3) RsaCheckKey
   4) RsaPkcs1Sign
 
-Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -55,7 +55,7 @@ RsaGetKey (
   @param[in, out]  RsaContext           Pointer to RSA context being set.
   @param[in]       ModulusLength        Length of RSA modulus N in bits.
   @param[in]       PublicExponent       Pointer to RSA public exponent.
-  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes. 
+  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes.
 
   @retval FALSE  This interface is not supported.
 

+ 1 - 1
CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c

@@ -318,7 +318,7 @@ _Exit:
                                    If Certificate is invalid.
   @retval RETURN_NOT_FOUND         If no CommonName entry exists.
   @retval RETURN_BUFFER_TOO_SMALL  If the CommonName is NULL. The required buffer size
-                                   (including the final null) is returned in the 
+                                   (including the final null) is returned in the
                                    CommonNameSize parameter.
   @retval RETURN_UNSUPPORTED       The operation is not supported.
 

+ 4 - 4
CryptoPkg/Library/BaseCryptLib/Pk/CryptX509Null.c

@@ -50,7 +50,7 @@ X509ConstructCertificate (
   @param           ...        A list of DER-encoded single certificate data followed
                               by certificate size. A NULL terminates the list. The
                               pairs are the arguments to X509ConstructCertificate().
-                                 
+
   @retval FALSE  This interface is not supported.
 
 **/
@@ -58,7 +58,7 @@ BOOLEAN
 EFIAPI
 X509ConstructCertificateStack (
   IN OUT  UINT8  **X509Stack,
-  ...  
+  ...
   )
 {
   ASSERT (FALSE);
@@ -78,7 +78,7 @@ EFIAPI
 X509Free (
   IN  VOID  *X509Cert
   )
-{ 
+{
   ASSERT (FALSE);
 }
 
@@ -196,7 +196,7 @@ RsaGetPublicKeyFromX509 (
   @param[in]      CACertSize   Size of the CA Certificate in bytes.
 
   @retval FALSE  This interface is not supported.
- 
+
 **/
 BOOLEAN
 EFIAPI

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c

@@ -1,7 +1,7 @@
 /** @file
   Pseudorandom Number Generator Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -69,7 +69,7 @@ RandomSeed (
       sizeof (DefaultSeed),
       "UEFI Crypto Library default seed (%ld)",
       AsmReadItc ()
-      ); 
+      );
 
     RAND_seed (DefaultSeed, sizeof (DefaultSeed));
   }

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c

@@ -1,7 +1,7 @@
 /** @file
   Pseudorandom Number Generator Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -69,7 +69,7 @@ RandomSeed (
       sizeof (DefaultSeed),
       "UEFI Crypto Library default seed (%ld)",
       AsmReadTsc ()
-      ); 
+      );
 
     RAND_seed (DefaultSeed, sizeof (DefaultSeed));
   }

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf

@@ -8,10 +8,10 @@
 #
 #  Note: MD4 Digest functions, SHA-384 Digest functions, SHA-512 Digest functions,
 #  HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 functions, RSA external
-#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and 
+#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
 #  authenticode signature verification functions are not supported in this instance.
 #
-#  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
+#  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 #  This program and the accompanying materials
 #  are licensed and made available under the terms and conditions of the BSD License
 #  which accompanies this distribution.  The full text of the license may be found at

+ 3 - 3
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.uni

@@ -5,19 +5,19 @@
 // This library will have external input - signature.
 // This external input must be validated carefully to avoid security issues such as
 // buffer overflow or integer overflow.
-// 
+//
 // Note: MD4 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, AES/
 // TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign functions,
 // Diffie-Hellman functions, and authenticode signature verification functions are
 // not supported in this instance.
 //
-// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 2 - 2
CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf

@@ -8,10 +8,10 @@
 #
 #  Note: MD4 Digest functions, SHA-384 Digest functions, SHA-512 Digest functions,
 #  HMAC-MD5 functions, HMAC-SHA1 functions, TDES/ARC4 functions, RSA external
-#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and 
+#  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
 #  authenticode signature verification functions are not supported in this instance.
 #
-#  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 #  This program and the accompanying materials
 #  are licensed and made available under the terms and conditions of the BSD License
 #  which accompanies this distribution.  The full text of the license may be found at

+ 3 - 3
CryptoPkg/Library/BaseCryptLib/SmmCryptLib.uni

@@ -5,19 +5,19 @@
 // This library will have external input - signature.
 // This external input must be validated carefully to avoid security issues such as
 // buffer overflow or integer overflow.
-// 
+//
 // Note: MD4 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, AES/
 // TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign functions,
 // Diffie-Hellman functions, and authenticode signature verification functions are
 // not supported in this instance.
 //
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 6 - 6
CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c

@@ -62,7 +62,7 @@ UINTN CumulativeDays[2][14] = {
     31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30,
     31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31,
     31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30,
-    31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 
+    31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31
   }
 };
 
@@ -96,12 +96,12 @@ time_t time (time_t *timer)
   //
   // Add in number of seconds for current Month, Day, Hour, Minute, Seconds, and TimeZone adjustment
   //
-  CalTime = CalTime + 
+  CalTime = CalTime +
             (time_t)((Time.TimeZone != EFI_UNSPECIFIED_TIMEZONE) ? (Time.TimeZone * 60) : 0) +
-            (time_t)(CumulativeDays[IsLeap(Time.Year)][Time.Month] * SECSPERDAY) + 
-            (time_t)(((Time.Day > 0) ? Time.Day - 1 : 0) * SECSPERDAY) + 
-            (time_t)(Time.Hour * SECSPERHOUR) + 
-            (time_t)(Time.Minute * 60) + 
+            (time_t)(CumulativeDays[IsLeap(Time.Year)][Time.Month] * SECSPERDAY) +
+            (time_t)(((Time.Day > 0) ? Time.Day - 1 : 0) * SECSPERDAY) +
+            (time_t)(Time.Hour * SECSPERHOUR) +
+            (time_t)(Time.Minute * 60) +
             (time_t)Time.Second;
 
   if (timer != NULL) {

+ 4 - 4
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf

@@ -2,22 +2,22 @@
 #  Cryptographic Library Instance based on Runtime Crypt Protocol.
 #  This instance will be only used by the Authenticated Variable driver for IPF.
 #
-#  Note: MD4/MD5/SHA1 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions, 
+#  Note: MD4/MD5/SHA1 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions,
 #  AES/TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign/verify
 #  functions, Diffie-Hellman functions, X.509 certificate handler functions,
 #  authenticode signature verification functions, PEM handler functions,
 #  pseudorandom number generator functions, and Sha256Duplicate() are not supported
 #  in this instance.
 #
-#  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 #  This program and the accompanying materials
 #  are licensed and made available under the terms and conditions of the BSD License
 #  which accompanies this distribution.  The full text of the license may be found at
 #  http://opensource.org/licenses/bsd-license.php
-#  
+#
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#  
+#
 ##
 
 [Defines]

+ 3 - 3
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.uni

@@ -2,7 +2,7 @@
 // Cryptographic Library Instance based on Runtime Crypt Protocol.
 //
 // This instance will be only used by the Authenticated Variable driver for IPF.
-// 
+//
 // Note: MD4/MD5/SHA1 Digest functions, HMAC-MD5 functions, HMAC-SHA1 functions,
 // AES/TDES/ARC4 functions, RSA external functions, PKCS#7 SignedData sign/verify
 // functions, Diffie-Hellman functions, X.509 certificate handler functions,
@@ -10,13 +10,13 @@
 // pseudorandom number generator functions, and Sha256Duplicate() are not supported
 // in this instance.
 //
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 6 - 6
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptAesNull.c

@@ -1,7 +1,7 @@
 /** @file
-  AES Wrapper Implementation which does not provide real capabilities.  
-  
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+  AES Wrapper Implementation which does not provide real capabilities.
+
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -60,12 +60,12 @@ AesInit (
   Performs AES encryption on a data buffer of the specified size in ECB mode.
 
   Return FALSE to indicate this interface is not supported.
-  
+
   @param[in]   AesContext  Pointer to the AES context.
   @param[in]   Input       Pointer to the buffer containing the data to be encrypted.
   @param[in]   InputSize   Size of the Input buffer in bytes.
   @param[out]  Output      Pointer to a buffer that receives the AES encryption output.
-  
+
   @retval FALSE  This interface is not supported.
 
 **/
@@ -159,7 +159,7 @@ AesCbcDecrypt (
   IN   CONST UINT8  *Ivec,
   OUT  UINT8        *Output
   )
-{  
+{
   ASSERT (FALSE);
   return FALSE;
 }

+ 3 - 3
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptArc4Null.c

@@ -1,7 +1,7 @@
-/** @file 
+/** @file
   ARC4 Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -78,7 +78,7 @@ Arc4Encrypt (
   IN      UINTN        InputSize,
   OUT     UINT8        *Output
   )
-{ 
+{
   ASSERT (FALSE);
   return FALSE;
 }

+ 2 - 2
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptMd4Null.c

@@ -1,7 +1,7 @@
 /** @file
   MD4 Digest Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -103,7 +103,7 @@ Md4Update (
 /**
   Completes computation of the MD4 digest value.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[in, out]  Md4Context  Pointer to the MD4 context.
   @param[out]      HashValue   Pointer to a buffer that receives the MD4 digest

+ 3 - 3
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptSha1Null.c

@@ -1,7 +1,7 @@
 /** @file
   SHA-1 Digest Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -31,7 +31,7 @@ Sha1GetContextSize (
   )
 {
   ASSERT (FALSE);
-  return 0;  
+  return 0;
 }
 
 /**
@@ -39,7 +39,7 @@ Sha1GetContextSize (
   subsequent use.
 
   Return FALSE to indicate this interface is not supported.
-  
+
   @param[out]  Sha1Context  Pointer to SHA-1 context being initialized.
 
   @retval FALSE  This interface is not supported.

+ 3 - 3
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacMd5Null.c

@@ -1,7 +1,7 @@
 /** @file
   HMAC-MD5 Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -34,9 +34,9 @@ HmacMd5GetContextSize (
 
 /**
   Initializes user-supplied memory pointed by HmacMd5Context as HMAC-MD5 context for
-  subsequent use. 
+  subsequent use.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[out]  HmacMd5Context  Pointer to HMAC-MD5 context being initialized.
   @param[in]   Key             Pointer to the user-supplied key.

+ 5 - 5
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacSha1Null.c

@@ -1,7 +1,7 @@
 /** @file
-  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.  
+  HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -36,7 +36,7 @@ HmacSha1GetContextSize (
   Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for
   subsequent use.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[out]  HmacSha1Context  Pointer to HMAC-SHA1 context being initialized.
   @param[in]   Key              Pointer to the user-supplied key.
@@ -82,7 +82,7 @@ HmacSha1Duplicate (
 /**
   Digests the input data and updates HMAC-SHA1 context.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[in, out]  HmacSha1Context Pointer to the HMAC-SHA1 context.
   @param[in]       Data            Pointer to the buffer containing the data to be digested.
@@ -106,7 +106,7 @@ HmacSha1Update (
 /**
   Completes computation of the HMAC-SHA1 digest value.
 
-  Return FALSE to indicate this interface is not supported.  
+  Return FALSE to indicate this interface is not supported.
 
   @param[in, out]  HmacSha1Context  Pointer to the HMAC-SHA1 context.
   @param[out]      HmacValue        Pointer to a buffer that receives the HMAC-SHA1 digest

+ 2 - 2
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h

@@ -1,7 +1,7 @@
-/** @file  
+/** @file
   Internal include file for BaseCryptLibRuntimeCryptProtocol.
 
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at

+ 2 - 2
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptDhNull.c

@@ -2,7 +2,7 @@
   Diffie-Hellman Wrapper Implementation which does not provide
   real capabilities.
 
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -98,7 +98,7 @@ DhSetParameter (
   )
 {
   ASSERT (FALSE);
-  return FALSE; 
+  return FALSE;
 }
 
 /**

+ 2 - 2
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptPkcs7VerifyNull.c

@@ -2,7 +2,7 @@
   PKCS#7 SignedData Verification Wrapper Implementation which does not provide
   real capabilities.
 
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -53,7 +53,7 @@ Pkcs7GetSigners (
   Wrap function to use free() to free allocated memory for certificates.
 
   If the interface is not supported, then ASSERT().
-  
+
   @param[in]  Certs        Pointer to the certificates to be freed.
 
 **/

+ 2 - 2
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptRsaExtNull.c

@@ -7,7 +7,7 @@
   3) RsaCheckKey
   4) RsaPkcs1Sign
 
-Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -55,7 +55,7 @@ RsaGetKey (
   @param[in, out]  RsaContext           Pointer to RSA context being set.
   @param[in]       ModulusLength        Length of RSA modulus N in bits.
   @param[in]       PublicExponent       Pointer to RSA public exponent.
-  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes. 
+  @param[in]       PublicExponentSize   Size of RSA public exponent buffer in bytes.
 
   @retval FALSE  This interface is not supported.
 

+ 5 - 5
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptX509Null.c

@@ -2,7 +2,7 @@
   X.509 Certificate Handler Wrapper Implementation which does not provide
   real capabilities.
 
-Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -50,7 +50,7 @@ X509ConstructCertificate (
   @param           ...        A list of DER-encoded single certificate data followed
                               by certificate size. A NULL terminates the list. The
                               pairs are the arguments to X509ConstructCertificate().
-                                 
+
   @retval FALSE  This interface is not supported.
 
 **/
@@ -58,7 +58,7 @@ BOOLEAN
 EFIAPI
 X509ConstructCertificateStack (
   IN OUT  UINT8  **X509Stack,
-  ...  
+  ...
   )
 {
   ASSERT (FALSE);
@@ -78,7 +78,7 @@ EFIAPI
 X509Free (
   IN  VOID  *X509Cert
   )
-{ 
+{
   ASSERT (FALSE);
 }
 
@@ -196,7 +196,7 @@ RsaGetPublicKeyFromX509 (
   @param[in]      CACertSize   Size of the CA Certificate in bytes.
 
   @retval FALSE  This interface is not supported.
- 
+
 **/
 BOOLEAN
 EFIAPI

+ 2 - 2
CryptoPkg/Library/IntrinsicLib/BaseIntrinsicLib.uni

@@ -3,13 +3,13 @@
 //
 // This module is intrinsic routines wrapper library instance.
 //
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 4 - 4
CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c

@@ -2,7 +2,7 @@
   Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based
   Cryptographic Library.
 
-Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
@@ -28,8 +28,8 @@ void * memset (void *dest, int ch, size_t count)
 {
   //
   // NOTE: Here we use one base implementation for memset, instead of the direct
-  //       optimized SetMem() wrapper. Because the IntrinsicLib has to be built 
-  //       without whole program optimization option, and there will be some 
+  //       optimized SetMem() wrapper. Because the IntrinsicLib has to be built
+  //       without whole program optimization option, and there will be some
   //       potential register usage errors when calling other optimized codes.
   //
 
@@ -44,7 +44,7 @@ void * memset (void *dest, int ch, size_t count)
   while (count-- != 0) {
     *(Pointer++) = (UINT8)ch;
   }
-  
+
   return dest;
 }
 

+ 2 - 2
CryptoPkg/Library/OpensslLib/OpensslLib.uni

@@ -3,13 +3,13 @@
 //
 // This module provides OpenSSL Library implementation.
 //
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //

+ 2 - 2
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni

@@ -3,13 +3,13 @@
 //
 // This module provides OpenSSL Library implementation (libcrypto only, no libssl).
 //
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 // This program and the accompanying materials
 // are licensed and made available under the terms and conditions of the BSD License
 // which accompanies this distribution.  The full text of the license may be found at
 // http://opensource.org/licenses/bsd-license.php
-// 
+//
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //