Browse Source

SecurityPkg: Fix few typos

Fix few typos in comments and documentation.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-63-philmd@redhat.com>
Antoine Coeur 4 years ago
parent
commit
fc70522ffe

+ 1 - 1
SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.c

@@ -185,7 +185,7 @@ TpmPhysicalPresence (
   @param[in] TcgProtocol              EFI TCG Protocol instance.
   @param[in] Ordinal                  TPM command code.
   @param[in] AdditionalParameterSize  Additional parameter size.
-  @param[in] AdditionalParameters     Pointer to the Additional paramaters.
+  @param[in] AdditionalParameters     Pointer to the Additional parameters.
 
   @retval TCG_PP_OPERATION_RESPONSE_BIOS_FAILURE  Error occurred during sending command to TPM or
                                                   receiving response from TPM.

+ 1 - 1
SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.c

@@ -478,7 +478,7 @@ DxeTpm2MeasureBootHandler (
   Status = gBS->LocateDevicePath (&gEfiBlockIoProtocolGuid, &DevicePathNode, &Handle);
   if (!EFI_ERROR (Status) && !mTcg2MeasureGptTableFlag) {
     //
-    // Find the gpt partion on the given devicepath
+    // Find the gpt partition on the given devicepath
     //
     DevicePathNode = OrigDevicePathNode;
     ASSERT (DevicePathNode != NULL);

+ 1 - 1
SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.c

@@ -776,7 +776,7 @@ DxeTpmMeasureBootHandler (
   Status = gBS->LocateDevicePath (&gEfiBlockIoProtocolGuid, &DevicePathNode, &Handle);
   if (!EFI_ERROR (Status) && !mMeasureGptTableFlag) {
     //
-    // Find the gpt partion on the given devicepath
+    // Find the gpt partition on the given devicepath
     //
     DevicePathNode = OrigDevicePathNode;
     ASSERT (DevicePathNode != NULL);

+ 1 - 1
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.c

@@ -1,6 +1,6 @@
 /** @file
   This library is BaseCrypto router. It will redirect hash request to each individual
-  hash handler registerd, such as SHA1, SHA256.
+  hash handler registered, such as SHA1, SHA256.
   Platform can use PcdTpm2HashMask to mask some hash engines.
 
 Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>

+ 1 - 1
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.c

@@ -1,6 +1,6 @@
 /** @file
   This library is BaseCrypto router. It will redirect hash request to each individual
-  hash handler registerd, such as SHA1, SHA256.
+  hash handler registered, such as SHA1, SHA256.
   Platform can use PcdTpm2HashMask to mask some hash engines.
 
 Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>

+ 1 - 1
SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf

@@ -1,5 +1,5 @@
 ## @file
-#  NULL platform secure library instance that alway returns TRUE for a user physical present
+#  NULL platform secure library instance that always returns TRUE for a user physical present
 #
 #  NULL PlatformSecureLib instance does NOT really detect whether a physical present
 #  user exists but returns TRUE directly. This instance can be used to verify security

+ 1 - 1
SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.uni

@@ -1,5 +1,5 @@
 // /** @file
-// NULL platform secure library instance that alway returns TRUE for a user physical present
+// NULL platform secure library instance that always returns TRUE for a user physical present
 //
 // NULL PlatformSecureLib instance does NOT really detect whether a physical present
 // user exists but returns TRUE directly. This instance can be used to verify security

+ 1 - 1
SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.c

@@ -519,7 +519,7 @@ IsValidTimestamp (
   @param[in]  SignedData      Pointer to buffer containing ASN.1 DER-encoded PKCS7
                               signature.
   @param[in]  SignedDataSize  The size of SignedData buffer in bytes.
-  @param[in]  InHash          Pointer to the buffer containing the hash of the mesage data
+  @param[in]  InHash          Pointer to the buffer containing the hash of the message data
                               previously signed and to be verified.
   @param[in]  InHashSize      The size of InHash buffer in bytes.
   @param[in]  RevokedDb       Pointer to a list of pointers to EFI_SIGNATURE_LIST

+ 1 - 1
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c

@@ -4,7 +4,7 @@
   The driver will use the new RDRAND instruction to produce high-quality, high-performance
   entropy and random number.
 
-  RNG Algoritnms defined in UEFI 2.4:
+  RNG Algorithms defined in UEFI 2.4:
    - EFI_RNG_ALGORITHM_SP800_90_CTR_256_GUID  - Supported
      (RDRAND implements a hardware NIST SP800-90 AES-CTR-256 based DRBG)
    - EFI_RNG_ALGORITHM_RAW                    - Supported