This module implements Hash2 Protocol.\r
\r
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under\r
-the terms and conditions of the BSD License that accompanies this distribution.\r
-The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
\r
This function performs Hash digest on a data buffer of the specified size.\r
It can be called multiple times to compute the digest of long or discontinuous data streams.\r
- Hash context should be already correctly intialized by HashInit(), and should not be finalized\r
+ Hash context should be already correctly initialized by HashInit(), and should not be finalized\r
by HashFinal(). Behavior with invalid context is undefined.\r
\r
If HashContext is NULL, then return FALSE.\r
if (HashInfo == NULL) {\r
return EFI_UNSUPPORTED;\r
}\r
- \r
+\r
Instance = HASH2_INSTANCE_DATA_FROM_THIS(This);\r
if (Instance->HashContext != NULL) {\r
FreePool (Instance->HashContext);\r