]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/IpSecDxe/IpSecCryptIo.h
NetworkPkg: Clean up source files
[mirror_edk2.git] / NetworkPkg / IpSecDxe / IpSecCryptIo.h
index 0ef83eb4cab4ab1a1be475fec6b6bb0cd970086b..d21ae9d5580c21e85f05e8df6e93ae9f7d72d316 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Definitions related to the Cryptographic Operations in IPsec.\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -47,9 +47,9 @@
 \r
 /**\r
   Prototype of HMAC GetContextSize.\r
-  \r
+\r
   Retrieves the size, in bytes, of the context buffer required.\r
-  \r
+\r
   @return  The size, in bytes, of the context buffer required.\r
 \r
 **/\r
@@ -61,13 +61,13 @@ UINTN
 \r
 /**\r
   Prototype of HMAC Operation Initiating.\r
-  \r
+\r
   Initialization with a new context.\r
 \r
   @param[out]     Context  Input Context.\r
   @param[in]      Key      Pointer to the key for HMAC.\r
   @param[in]      KeySize  The length of the Key in bytes.\r
\r
+\r
   @retval TRUE  Initialization Successfully.\r
 \r
 **/\r
@@ -251,7 +251,7 @@ BOOLEAN
 \r
 /**\r
   Prototype of Hash Update\r
-  \r
+\r
   Digests the input data and updates hash context.\r
 \r
   This function performs digest on a data buffer of the specified size.\r
@@ -354,7 +354,7 @@ typedef struct _AUTH_ALGORITHM {
   UINT8                    AlgorithmId;\r
   //\r
   // The Key length of the Algorithm\r
-  // \r
+  //\r
   UINTN                    DigestLength;\r
   //\r
   // The ICV length of the Algorithm\r
@@ -578,7 +578,7 @@ IpSecCryptoIoDecrypt (
   the input algorithm ID. It computes all datas from InDataFragment and output\r
   the result into the OutData buffer. If the OutDataSize is larger than the related\r
   HMAC algorithm output size, return EFI_INVALID_PARAMETER.\r
-  \r
+\r
   @param[in]      AlgorithmId     The authentication Identification.\r
   @param[in]      Key             Pointer of the authentication key.\r
   @param[in]      KeyLength       The length of the Key in bytes.\r
@@ -704,7 +704,7 @@ IpSecCryptoIoDhComputeKey (
 \r
   @retval EFI_SUCCESS              The operation performs successfully.\r
   @retval EFI_INVALID_PARAMETER    The DhContext is NULL.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 IpSecCryptoIoFreeDh (\r
@@ -740,7 +740,7 @@ IpSecCryptoIoGenerateRandomBytes (
   @param[in]      KeyPwdSize      The size of Key Password in bytes.\r
   @param[out]     OutData         The pointer to the signed data.\r
   @param[in, out] OutDataSize     Pointer to contain the size of out data.\r
\r
+\r
 **/\r
 VOID\r
 IpSecCryptoIoAuthDataWithCertificate (\r
@@ -769,7 +769,7 @@ IpSecCryptoIoAuthDataWithCertificate (
 \r
   @retval  TRUE   Valid signature encoded in PKCS1-v1_5.\r
   @retval  FALSE  Invalid signature or invalid RSA context.\r
\r
+\r
 **/\r
 BOOLEAN\r
 IpSecCryptoIoVerifySignDataByCertificate (\r
@@ -810,10 +810,10 @@ IpSecCryptoIoGetPublicKeyFromCert (
   @param[in]     CertSize          The size of the X509 certificate in bytes.\r
   @param[out]    CertSubject       Pointer to the retrieved certificate subject.\r
   @param[out]    SubjectSize       The size of Certificate Subject in bytes.\r
-  \r
+\r
   @retval  EFI_SUCCESS            Retrieved the certificate subject successfully.\r
   @retval  EFI_INVALID_PARAMETER  The certificate is malformed.\r
\r
+\r
 **/\r
 EFI_STATUS\r
 IpSecCryptoIoGetSubjectFromCert (\r