]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Hash.h
MdePkg/ProcessorBind: add defines for page allocation granularity
[mirror_edk2.git] / MdePkg / Include / Protocol / Hash.h
index 9299c96699407873e64ddd3c4ed81818144989ad..0bee694a5b10d2b7b1b138631c86e4aff4f7e28f 100644 (file)
@@ -5,7 +5,7 @@
   provided by a driver and to create and destroy instances of the EFI Hash Protocol \r
   so that a multiple drivers can use the underlying hashing services.\r
 \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2014, 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
@@ -69,6 +69,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     0x8628752a, 0x6cb7, 0x4814, {0x96, 0xfc, 0x24, 0xa8, 0x15, 0xac, 0x22, 0x26 } \\r
   }\r
 \r
+//\r
+// Note: Use of the following algorithms with EFI_HASH_PROTOCOL is deprecated.\r
+//       EFI_HASH_ALGORITHM_SHA1_GUID\r
+//       EFI_HASH_ALGORITHM_SHA224_GUID\r
+//       EFI_HASH_ALGORITHM_SHA256_GUID\r
+//       EFI_HASH_ALGORITHM_SHA384_GUID\r
+//       EFI_HASH_ALGORITHM_SHA512_GUID\r
+//       EFI_HASH_ALGORTIHM_MD5_GUID\r
+//\r
+\r
 typedef struct _EFI_HASH_PROTOCOL EFI_HASH_PROTOCOL;\r
 \r
 typedef UINT8  EFI_MD5_HASH[16];\r
@@ -95,7 +105,7 @@ typedef union {
   @param[out] HashSize              Holds the returned size of the algorithm's hash.\r
 \r
   @retval EFI_SUCCESS           Hash size returned successfully.\r
-  @retval EFI_INVALID_PARAMETER HashSize is NULL\r
+  @retval EFI_INVALID_PARAMETER HashSize is NULL or HashAlgorithm is NULL.\r
   @retval EFI_UNSUPPORTED       The algorithm specified by HashAlgorithm is not supported \r
                                 by this driver.\r
 \r
@@ -125,7 +135,8 @@ EFI_STATUS
                             array will contain the result of the hash computation.\r
   \r
   @retval EFI_SUCCESS           Hash returned successfully.\r
-  @retval EFI_INVALID_PARAMETER Message or Hash is NULL\r
+  @retval EFI_INVALID_PARAMETER Message or Hash, HashAlgorithm is NULL or MessageSize is 0.\r
+                                MessageSize is not an integer multiple of block size.\r
   @retval EFI_UNSUPPORTED       The algorithm specified by HashAlgorithm is not supported by this\r
                                  driver. Or, Extend is TRUE, and the algorithm doesn't support extending the hash.\r
 \r