/** @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
\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
\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
\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
UINT8 AlgorithmId;\r
//\r
// The Key length of the Algorithm\r
- // \r
+ //\r
UINTN DigestLength;\r
//\r
// The ICV length of the Algorithm\r
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
\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
@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
\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
@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