]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Hash/CryptSha512Null.c
89aeacc74e776767c3e0ee3e1cfa934fa0eb2a48
2 SHA-384 and SHA-512 Digest Wrapper Implementations which does not provide real capabilities.
4 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include "InternalCryptLib.h"
18 Retrieves the size, in bytes, of the context buffer required for SHA-384 hash operations.
20 Return zero to indicate this interface is not supported.
22 @retval 0 This interface is not supported.
27 Sha384GetContextSize (
36 Initializes user-supplied memory pointed by Sha384Context as SHA-384 hash context for
39 Return FALSE to indicate this interface is not supported.
41 @param[out] Sha384Context Pointer to SHA-384 context being initialized.
43 @retval FALSE This interface is not supported.
49 OUT VOID
*Sha384Context
57 Makes a copy of an existing SHA-384 context.
59 Return FALSE to indicate this interface is not supported.
61 @param[in] Sha384Context Pointer to SHA-384 context being copied.
62 @param[out] NewSha384Context Pointer to new SHA-384 context.
64 @retval FALSE This interface is not supported.
70 IN CONST VOID
*Sha384Context
,
71 OUT VOID
*NewSha384Context
79 Digests the input data and updates SHA-384 context.
81 Return FALSE to indicate this interface is not supported.
83 @param[in, out] Sha384Context Pointer to the SHA-384 context.
84 @param[in] Data Pointer to the buffer containing the data to be hashed.
85 @param[in] DataSize Size of Data buffer in bytes.
87 @retval FALSE This interface is not supported.
93 IN OUT VOID
*Sha384Context
,
103 Completes computation of the SHA-384 digest value.
105 Return FALSE to indicate this interface is not supported.
107 @param[in, out] Sha384Context Pointer to the SHA-384 context.
108 @param[out] HashValue Pointer to a buffer that receives the SHA-384 digest
111 @retval FALSE This interface is not supported.
117 IN OUT VOID
*Sha384Context
,
126 Retrieves the size, in bytes, of the context buffer required for SHA-512 hash operations.
128 Return zero to indicate this interface is not supported.
130 @retval 0 This interface is not supported.
135 Sha512GetContextSize (
144 Initializes user-supplied memory pointed by Sha512Context as SHA-512 hash context for
147 Return FALSE to indicate this interface is not supported.
149 @param[out] Sha512Context Pointer to SHA-512 context being initialized.
151 @retval FALSE This interface is not supported.
157 OUT VOID
*Sha512Context
165 Makes a copy of an existing SHA-512 context.
167 Return FALSE to indicate this interface is not supported.
169 @param[in] Sha512Context Pointer to SHA-512 context being copied.
170 @param[out] NewSha512Context Pointer to new SHA-512 context.
172 @retval FALSE This interface is not supported.
178 IN CONST VOID
*Sha512Context
,
179 OUT VOID
*NewSha512Context
187 Digests the input data and updates SHA-512 context.
189 Return FALSE to indicate this interface is not supported.
191 @param[in, out] Sha512Context Pointer to the SHA-512 context.
192 @param[in] Data Pointer to the buffer containing the data to be hashed.
193 @param[in] DataSize Size of Data buffer in bytes.
195 @retval FALSE This interface is not supported.
201 IN OUT VOID
*Sha512Context
,
211 Completes computation of the SHA-512 digest value.
213 Return FALSE to indicate this interface is not supported.
215 @param[in, out] Sha512Context Pointer to the SHA-512 context.
216 @param[out] HashValue Pointer to a buffer that receives the SHA-512 digest
219 @retval FALSE This interface is not supported.
225 IN OUT VOID
*Sha512Context
,