]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha256Null.c
2 HMAC-SHA256 Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2016 - 2017, 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-SHA256 operations.
13 (NOTE: This API is deprecated.
14 Use HmacSha256New() / HmacSha256Free() for HMAC-SHA256 Context operations.)
16 Return zero to indicate this interface is not supported.
18 @retval 0 This interface is not supported.
23 HmacSha256GetContextSize (
32 Allocates and initializes one HMAC_CTX context for subsequent HMAC-SHA256 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] HmacSha256Ctx Pointer to the HMAC_CTX context to be released.
60 IN VOID
*HmacSha256Ctx
68 Initializes user-supplied memory pointed by HmacSha256Context as HMAC-SHA256 context for
71 Return FALSE to indicate this interface is not supported.
73 @param[out] HmacSha256Context Pointer to HMAC-SHA256 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
*HmacSha256Context
,
93 Makes a copy of an existing HMAC-SHA256 context.
95 Return FALSE to indicate this interface is not supported.
97 @param[in] HmacSha256Context Pointer to HMAC-SHA256 context being copied.
98 @param[out] NewHmacSha256Context Pointer to new HMAC-SHA256 context.
100 @retval FALSE This interface is not supported.
105 HmacSha256Duplicate (
106 IN CONST VOID
*HmacSha256Context
,
107 OUT VOID
*NewHmacSha256Context
115 Digests the input data and updates HMAC-SHA256 context.
117 Return FALSE to indicate this interface is not supported.
119 @param[in, out] HmacSha256Context Pointer to the HMAC-SHA256 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
*HmacSha256Context
,
139 Completes computation of the HMAC-SHA256 digest value.
141 Return FALSE to indicate this interface is not supported.
143 @param[in, out] HmacSha256Context Pointer to the HMAC-SHA256 context.
144 @param[out] HmacValue Pointer to a buffer that receives the HMAC-SHA256 digest
147 @retval FALSE This interface is not supported.
153 IN OUT VOID
*HmacSha256Context
,