]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Hash/CryptSha1Null.c
2 SHA-1 Digest Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2012 - 2018, 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"
19 Retrieves the size, in bytes, of the context buffer required for SHA-1 hash operations.
21 Return zero to indicate this interface is not supported.
23 @return The size, in bytes, of the context buffer required for SHA-1 hash operations.
24 @retval 0 This interface is not supported.
38 Initializes user-supplied memory pointed by Sha1Context as SHA-1 hash context for
41 Return FALSE to indicate this interface is not supported.
43 @param[out] Sha1Context Pointer to SHA-1 context being initialized.
45 @retval FALSE This interface is not supported.
59 Makes a copy of an existing SHA-1 context.
61 Return FALSE to indicate this interface is not supported.
63 @param[in] Sha1Context Pointer to SHA-1 context being copied.
64 @param[out] NewSha1Context Pointer to new SHA-1 context.
66 @retval FALSE This interface is not supported.
72 IN CONST VOID
*Sha1Context
,
73 OUT VOID
*NewSha1Context
81 Digests the input data and updates SHA-1 context.
83 Return FALSE to indicate this interface is not supported.
85 @param[in, out] Sha1Context Pointer to the SHA-1 context.
86 @param[in] Data Pointer to the buffer containing the data to be hashed.
87 @param[in] DataSize Size of Data buffer in bytes.
89 @retval FALSE This interface is not supported.
95 IN OUT VOID
*Sha1Context
,
105 Completes computation of the SHA-1 digest value.
107 Return FALSE to indicate this interface is not supported.
109 @param[in, out] Sha1Context Pointer to the SHA-1 context.
110 @param[out] HashValue Pointer to a buffer that receives the SHA-1 digest
113 @retval FALSE This interface is not supported.
119 IN OUT VOID
*Sha1Context
,