From 630f67ddfea296ccb59d7863796210e130eec67e Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Wed, 27 Jun 2018 17:32:13 +0800 Subject: [PATCH] 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 --- CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf | 8 ++++---- CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.uni | 4 ++-- CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni | 6 +++--- CryptoPkg/CryptoPkg.dsc | 6 +++--- CryptoPkg/CryptoPkg.uni | 4 ++-- CryptoPkg/CryptoPkgExtra.uni | 6 +++--- CryptoPkg/Include/Library/BaseCryptLib.h | 2 +- CryptoPkg/Library/BaseCryptLib/BaseCryptLib.uni | 4 ++-- CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c | 4 ++-- CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c | 12 ++++++------ CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c | 6 +++--- .../Library/BaseCryptLib/Cipher/CryptArc4Null.c | 6 +++--- CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c | 4 ++-- .../Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c | 6 +++--- .../Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c | 10 +++++----- CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 8 ++++---- CryptoPkg/Library/BaseCryptLib/PeiCryptLib.uni | 6 +++--- CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c | 8 ++++---- CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c | 10 +++++----- CryptoPkg/Library/BaseCryptLib/Pk/CryptDhNull.c | 4 ++-- CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Sign.c | 4 ++-- .../Library/BaseCryptLib/Pk/CryptPkcs7VerifyNull.c | 4 ++-- CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c | 4 ++-- CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c | 8 ++++---- CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c | 4 ++-- CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c | 2 +- CryptoPkg/Library/BaseCryptLib/Pk/CryptX509Null.c | 8 ++++---- CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c | 4 ++-- CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c | 4 ++-- CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf | 4 ++-- CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.uni | 6 +++--- CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 4 ++-- CryptoPkg/Library/BaseCryptLib/SmmCryptLib.uni | 6 +++--- .../Library/BaseCryptLib/SysCall/TimerWrapper.c | 12 ++++++------ .../BaseCryptLibRuntimeCryptProtocol.inf | 8 ++++---- .../BaseCryptLibRuntimeCryptProtocol.uni | 6 +++--- .../Cipher/CryptAesNull.c | 12 ++++++------ .../Cipher/CryptArc4Null.c | 6 +++--- .../Hash/CryptMd4Null.c | 4 ++-- .../Hash/CryptSha1Null.c | 6 +++--- .../Hmac/CryptHmacMd5Null.c | 6 +++--- .../Hmac/CryptHmacSha1Null.c | 10 +++++----- .../InternalCryptLib.h | 4 ++-- .../Pk/CryptDhNull.c | 4 ++-- .../Pk/CryptPkcs7VerifyNull.c | 4 ++-- .../Pk/CryptRsaExtNull.c | 4 ++-- .../Pk/CryptX509Null.c | 10 +++++----- CryptoPkg/Library/IntrinsicLib/BaseIntrinsicLib.uni | 4 ++-- CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c | 8 ++++---- CryptoPkg/Library/OpensslLib/OpensslLib.uni | 4 ++-- CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni | 4 ++-- 51 files changed, 151 insertions(+), 151 deletions(-) diff --git a/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf b/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf index 23df499ad3..967f3a7564 100644 --- a/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf +++ b/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.
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
# 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 - \ No newline at end of file + diff --git a/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.uni b/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.uni index 337cdf47b8..b7ca7846a3 100644 --- a/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.uni +++ b/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.
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni b/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni index 7fe3a61753..1a042e0546 100644 --- a/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni +++ b/CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxeExtra.uni @@ -1,7 +1,7 @@ // /** @file // CryptRuntimeDxe Localized Strings and Content // -// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
// // 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" diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc index b49e587ba1..b5afdba4b9 100644 --- a/CryptoPkg/CryptoPkg.dsc +++ b/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 diff --git a/CryptoPkg/CryptoPkg.uni b/CryptoPkg/CryptoPkg.uni index effb918cf4..a764d3dea5 100644 --- a/CryptoPkg/CryptoPkg.uni +++ b/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.
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/CryptoPkgExtra.uni b/CryptoPkg/CryptoPkgExtra.uni index 71c4a65aa4..f37e3cbba2 100644 --- a/CryptoPkg/CryptoPkgExtra.uni +++ b/CryptoPkg/CryptoPkgExtra.uni @@ -1,7 +1,7 @@ // /** @file // Crypto Package Localized Strings and Content. // -// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
// // 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" diff --git a/CryptoPkg/Include/Library/BaseCryptLib.h b/CryptoPkg/Include/Library/BaseCryptLib.h index dc6aaf0635..52ab2316db 100644 --- a/CryptoPkg/Include/Library/BaseCryptLib.h +++ b/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. diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.uni b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.uni index 00609947e5..d9231337da 100644 --- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.uni +++ b/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.
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c index 753d79814f..699dc99ae2 100644 --- a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c +++ b/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.
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
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; // diff --git a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c index 074b07247b..6e3acf5e78 100644 --- a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c +++ b/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.
+ AES Wrapper Implementation which does not provide real capabilities. + +Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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; } diff --git a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c index f3c4d31a2d..3064c44381 100644 --- a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c +++ b/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.
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
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)); diff --git a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c index 1275e20f89..5b48e445f2 100644 --- a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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; } diff --git a/CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c b/CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c index 01b3f23da7..c7510d0ec8 100644 --- a/CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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 diff --git a/CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c b/CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c index bfe68ab916..4ddd174168 100644 --- a/CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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. diff --git a/CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c b/CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c index 466c4885c3..a73dff5584 100644 --- a/CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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 diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf index 0131b5a65e..e7b4b2f618 100644 --- a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf +++ b/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.
diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.uni b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.uni index 41fdbbd2cd..64206e76d8 100644 --- a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.uni +++ b/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.
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c b/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c index 51e648b736..de758ac854 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c +++ b/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.
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
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 ) { diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c index 391efd5c14..abd581d93f 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c +++ b/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.
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
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; diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptDhNull.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptDhNull.c index 35045db3c8..4def517162 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptDhNull.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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; } /** diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Sign.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Sign.c index 0f61d4b4ad..bc80401562 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7Sign.c +++ b/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.
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
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) { diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyNull.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyNull.c index 5490b1f3d6..f2a1a620ad 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyNull.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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. **/ diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c index ba1bcf0f0b..a86e0629b8 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c @@ -7,7 +7,7 @@ 3) RsaSetKey 4) RsaPkcs1Verify -Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
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: diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c index ca32b1ecc3..51f0456696 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExt.c @@ -7,7 +7,7 @@ 3) RsaCheckKey 4) RsaPkcs1Sign -Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
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: diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c index e44cdde44f..b72079a8d5 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaExtNull.c @@ -7,7 +7,7 @@ 3) RsaCheckKey 4) RsaPkcs1Sign -Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
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. diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c index c137df357f..75337ed32b 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c +++ b/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. diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509Null.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509Null.c index d86c784a7f..31cae46154 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509Null.c +++ b/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 diff --git a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c b/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c index 3db5157a37..26c943e4aa 100644 --- a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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)); } diff --git a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c b/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c index 15f0b3feca..74d9cbca2f 100644 --- a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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)); } diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf index 05cd31674f..44a97fd114 100644 --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf +++ b/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.
+# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
# 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 diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.uni b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.uni index 593faa7b06..5fbe078d96 100644 --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.uni +++ b/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.
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf index 36552bc4f4..38328cc5aa 100644 --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf +++ b/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.
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
# 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 diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.uni b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.uni index 9b2df98582..d945034ef5 100644 --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.uni +++ b/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.
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c index cdf3b60b9f..5f9b0c20d7 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c +++ b/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) { diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf index 1e840a5d1e..bf2d87925c 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf +++ b/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.
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
# 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] diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.uni b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.uni index 533fffa8c3..1f39c2efdf 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.uni +++ b/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.
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptAesNull.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptAesNull.c index 074b07247b..6e3acf5e78 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptAesNull.c +++ b/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.
+ AES Wrapper Implementation which does not provide real capabilities. + +Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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; } diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptArc4Null.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptArc4Null.c index 1275e20f89..5b48e445f2 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Cipher/CryptArc4Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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; } diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptMd4Null.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptMd4Null.c index fc634fd163..6327d983a9 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptMd4Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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 diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptSha1Null.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptSha1Null.c index 7054365e80..7d7aac52d2 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptSha1Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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. diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacMd5Null.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacMd5Null.c index b4bdde0433..b09b5a8731 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacMd5Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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. diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacSha1Null.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacSha1Null.c index b31d0d1402..97403ee00b 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hmac/CryptHmacSha1Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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 diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h index 24c767ced6..45144abd0a 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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 diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptDhNull.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptDhNull.c index 35045db3c8..4def517162 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptDhNull.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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; } /** diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptPkcs7VerifyNull.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptPkcs7VerifyNull.c index 06602ec535..ae1c13c23e 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptPkcs7VerifyNull.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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. **/ diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptRsaExtNull.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptRsaExtNull.c index e44cdde44f..b72079a8d5 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptRsaExtNull.c +++ b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptRsaExtNull.c @@ -7,7 +7,7 @@ 3) RsaCheckKey 4) RsaPkcs1Sign -Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
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. diff --git a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptX509Null.c b/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptX509Null.c index d00f38daa8..f95a2c0a89 100644 --- a/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/CryptX509Null.c +++ b/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.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
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 diff --git a/CryptoPkg/Library/IntrinsicLib/BaseIntrinsicLib.uni b/CryptoPkg/Library/IntrinsicLib/BaseIntrinsicLib.uni index c40b856a49..6732df9cef 100644 --- a/CryptoPkg/Library/IntrinsicLib/BaseIntrinsicLib.uni +++ b/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.
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c b/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c index e095f9aa0d..324381b6e9 100644 --- a/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c +++ b/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.
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
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; } diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.uni b/CryptoPkg/Library/OpensslLib/OpensslLib.uni index 0dffec1c98..6aba8479f8 100644 --- a/CryptoPkg/Library/OpensslLib/OpensslLib.uni +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.uni @@ -3,13 +3,13 @@ // // This module provides OpenSSL Library implementation. // -// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
// // 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. // diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni index 7891b13595..10a5b7f3ae 100644 --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni +++ b/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.
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
// // 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.39.2