]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLibNull/Hash/CryptSha512Null.c
2 SHA-384 and SHA-512 Digest Wrapper Implementations which does not provide real capabilities.
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "InternalCryptLib.h"
12 Retrieves the size, in bytes, of the context buffer required for SHA-384 hash operations.
14 Return zero to indicate this interface is not supported.
16 @retval 0 This interface is not supported.
21 Sha384GetContextSize (
30 Initializes user-supplied memory pointed by Sha384Context as SHA-384 hash context for
33 Return FALSE to indicate this interface is not supported.
35 @param[out] Sha384Context Pointer to SHA-384 context being initialized.
37 @retval FALSE This interface is not supported.
43 OUT VOID
*Sha384Context
51 Makes a copy of an existing SHA-384 context.
53 Return FALSE to indicate this interface is not supported.
55 @param[in] Sha384Context Pointer to SHA-384 context being copied.
56 @param[out] NewSha384Context Pointer to new SHA-384 context.
58 @retval FALSE This interface is not supported.
64 IN CONST VOID
*Sha384Context
,
65 OUT VOID
*NewSha384Context
73 Digests the input data and updates SHA-384 context.
75 Return FALSE to indicate this interface is not supported.
77 @param[in, out] Sha384Context Pointer to the SHA-384 context.
78 @param[in] Data Pointer to the buffer containing the data to be hashed.
79 @param[in] DataSize Size of Data buffer in bytes.
81 @retval FALSE This interface is not supported.
87 IN OUT VOID
*Sha384Context
,
97 Completes computation of the SHA-384 digest value.
99 Return FALSE to indicate this interface is not supported.
101 @param[in, out] Sha384Context Pointer to the SHA-384 context.
102 @param[out] HashValue Pointer to a buffer that receives the SHA-384 digest
105 @retval FALSE This interface is not supported.
111 IN OUT VOID
*Sha384Context
,
120 Computes the SHA-384 message digest of a input data buffer.
122 Return FALSE to indicate this interface is not supported.
124 @param[in] Data Pointer to the buffer containing the data to be hashed.
125 @param[in] DataSize Size of Data buffer in bytes.
126 @param[out] HashValue Pointer to a buffer that receives the SHA-384 digest
129 @retval FALSE This interface is not supported.
145 Retrieves the size, in bytes, of the context buffer required for SHA-512 hash operations.
147 Return zero to indicate this interface is not supported.
149 @retval 0 This interface is not supported.
154 Sha512GetContextSize (
163 Initializes user-supplied memory pointed by Sha512Context as SHA-512 hash context for
166 Return FALSE to indicate this interface is not supported.
168 @param[out] Sha512Context Pointer to SHA-512 context being initialized.
170 @retval FALSE This interface is not supported.
176 OUT VOID
*Sha512Context
184 Makes a copy of an existing SHA-512 context.
186 Return FALSE to indicate this interface is not supported.
188 @param[in] Sha512Context Pointer to SHA-512 context being copied.
189 @param[out] NewSha512Context Pointer to new SHA-512 context.
191 @retval FALSE This interface is not supported.
197 IN CONST VOID
*Sha512Context
,
198 OUT VOID
*NewSha512Context
206 Digests the input data and updates SHA-512 context.
208 Return FALSE to indicate this interface is not supported.
210 @param[in, out] Sha512Context Pointer to the SHA-512 context.
211 @param[in] Data Pointer to the buffer containing the data to be hashed.
212 @param[in] DataSize Size of Data buffer in bytes.
214 @retval FALSE This interface is not supported.
220 IN OUT VOID
*Sha512Context
,
230 Completes computation of the SHA-512 digest value.
232 Return FALSE to indicate this interface is not supported.
234 @param[in, out] Sha512Context Pointer to the SHA-512 context.
235 @param[out] HashValue Pointer to a buffer that receives the SHA-512 digest
238 @retval FALSE This interface is not supported.
244 IN OUT VOID
*Sha512Context
,
253 Computes the SHA-512 message digest of a input data buffer.
255 Return FALSE to indicate this interface is not supported.
257 @param[in] Data Pointer to the buffer containing the data to be hashed.
258 @param[in] DataSize Size of Data buffer in bytes.
259 @param[out] HashValue Pointer to a buffer that receives the SHA-512 digest
262 @retval FALSE This interface is not supported.