]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c
2 HMAC-SHA1 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"
18 Retrieves the size, in bytes, of the context buffer required for HMAC-SHA1 operations.
19 (NOTE: This API is deprecated.
20 Use HmacSha1New() / HmacSha1Free() for HMAC-SHA1 Context operations.)
22 Return zero to indicate this interface is not supported.
24 @retval 0 This interface is not supported.
29 HmacSha1GetContextSize (
38 Allocates and initializes one HMAC_CTX context for subsequent HMAC-SHA1 use.
40 Return NULL to indicate this interface is not supported.
42 @return NULL This interface is not supported..
56 Release the specified HMAC_CTX context.
58 This function will do nothing.
60 @param[in] HmacSha1Ctx Pointer to the HMAC_CTX context to be released.
74 Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for
77 Return FALSE to indicate this interface is not supported.
79 @param[out] HmacSha1Context Pointer to HMAC-SHA1 context being initialized.
80 @param[in] Key Pointer to the user-supplied key.
81 @param[in] KeySize Key size in bytes.
83 @retval FALSE This interface is not supported.
89 OUT VOID
*HmacSha1Context
,
99 Makes a copy of an existing HMAC-SHA1 context.
101 Return FALSE to indicate this interface is not supported.
103 @param[in] HmacSha1Context Pointer to HMAC-SHA1 context being copied.
104 @param[out] NewHmacSha1Context Pointer to new HMAC-SHA1 context.
106 @retval FALSE This interface is not supported.
112 IN CONST VOID
*HmacSha1Context
,
113 OUT VOID
*NewHmacSha1Context
121 Digests the input data and updates HMAC-SHA1 context.
123 Return FALSE to indicate this interface is not supported.
125 @param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
126 @param[in] Data Pointer to the buffer containing the data to be digested.
127 @param[in] DataSize Size of Data buffer in bytes.
129 @retval FALSE This interface is not supported.
135 IN OUT VOID
*HmacSha1Context
,
145 Completes computation of the HMAC-SHA1 digest value.
147 Return FALSE to indicate this interface is not supported.
149 @param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
150 @param[out] HmacValue Pointer to a buffer that receives the HMAC-SHA1 digest
153 @retval FALSE This interface is not supported.
159 IN OUT VOID
*HmacSha1Context
,