summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/BaseCryptLib/Cipher
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 17:32:13 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:40 +0800
commit630f67ddfea296ccb59d7863796210e130eec67e (patch)
treea3df8861fc6967d317cca6db47076ec3fdc400b7 /CryptoPkg/Library/BaseCryptLib/Cipher
parent2b5c643ae8f7e72a56deeacead6b5302a076d329 (diff)
downloadedk2-630f67ddfea296ccb59d7863796210e130eec67e.tar.gz
edk2-630f67ddfea296ccb59d7863796210e130eec67e.tar.bz2
edk2-630f67ddfea296ccb59d7863796210e130eec67e.zip
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>
Diffstat (limited to 'CryptoPkg/Library/BaseCryptLib/Cipher')
-rw-r--r--CryptoPkg/Library/BaseCryptLib/Cipher/CryptAes.c4
-rw-r--r--CryptoPkg/Library/BaseCryptLib/Cipher/CryptAesNull.c12
-rw-r--r--CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c6
-rw-r--r--CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c6
4 files changed, 14 insertions, 14 deletions
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.<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;
//
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.<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;
}
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.<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));
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.<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;
}