]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c
547aa484ea1647de91a79710402a8d1bb99cc779
2 HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2012 - 2018, 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 HMAC-SHA1 operations.
13 (NOTE: This API is deprecated.
14 Use HmacSha1New() / HmacSha1Free() for HMAC-SHA1 Context operations.)
16 Return zero to indicate this interface is not supported.
18 @retval 0 This interface is not supported.
23 HmacSha1GetContextSize (
32 Allocates and initializes one HMAC_CTX context for subsequent HMAC-SHA1 use.
34 Return NULL to indicate this interface is not supported.
36 @return NULL This interface is not supported..
50 Release the specified HMAC_CTX context.
52 This function will do nothing.
54 @param[in] HmacSha1Ctx Pointer to the HMAC_CTX context to be released.
68 Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for
71 Return FALSE to indicate this interface is not supported.
73 @param[out] HmacSha1Context Pointer to HMAC-SHA1 context being initialized.
74 @param[in] Key Pointer to the user-supplied key.
75 @param[in] KeySize Key size in bytes.
77 @retval FALSE This interface is not supported.
83 OUT VOID
*HmacSha1Context
,
93 Makes a copy of an existing HMAC-SHA1 context.
95 Return FALSE to indicate this interface is not supported.
97 @param[in] HmacSha1Context Pointer to HMAC-SHA1 context being copied.
98 @param[out] NewHmacSha1Context Pointer to new HMAC-SHA1 context.
100 @retval FALSE This interface is not supported.
106 IN CONST VOID
*HmacSha1Context
,
107 OUT VOID
*NewHmacSha1Context
115 Digests the input data and updates HMAC-SHA1 context.
117 Return FALSE to indicate this interface is not supported.
119 @param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
120 @param[in] Data Pointer to the buffer containing the data to be digested.
121 @param[in] DataSize Size of Data buffer in bytes.
123 @retval FALSE This interface is not supported.
129 IN OUT VOID
*HmacSha1Context
,
139 Completes computation of the HMAC-SHA1 digest value.
141 Return FALSE to indicate this interface is not supported.
143 @param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
144 @param[out] HmacValue Pointer to a buffer that receives the HMAC-SHA1 digest
147 @retval FALSE This interface is not supported.
153 IN OUT VOID
*HmacSha1Context
,