]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha256Null.c
1696fa1eb919cc553cdacfd98fd25a96b980a802
2 HMAC-SHA256 Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2016 - 2017, 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-SHA256 operations.
19 (NOTE: This API is deprecated.
20 Use HmacSha256New() / HmacSha256Free() for HMAC-SHA256 Context operations.)
22 Return zero to indicate this interface is not supported.
24 @retval 0 This interface is not supported.
29 HmacSha256GetContextSize (
38 Allocates and initializes one HMAC_CTX context for subsequent HMAC-SHA256 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] HmacSha256Ctx Pointer to the HMAC_CTX context to be released.
66 IN VOID
*HmacSha256Ctx
74 Initializes user-supplied memory pointed by HmacSha256Context as HMAC-SHA256 context for
77 Return FALSE to indicate this interface is not supported.
79 @param[out] HmacSha256Context Pointer to HMAC-SHA256 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
*HmacSha256Context
,
99 Makes a copy of an existing HMAC-SHA256 context.
101 Return FALSE to indicate this interface is not supported.
103 @param[in] HmacSha256Context Pointer to HMAC-SHA256 context being copied.
104 @param[out] NewHmacSha256Context Pointer to new HMAC-SHA256 context.
106 @retval FALSE This interface is not supported.
111 HmacSha256Duplicate (
112 IN CONST VOID
*HmacSha256Context
,
113 OUT VOID
*NewHmacSha256Context
121 Digests the input data and updates HMAC-SHA256 context.
123 Return FALSE to indicate this interface is not supported.
125 @param[in, out] HmacSha256Context Pointer to the HMAC-SHA256 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
*HmacSha256Context
,
145 Completes computation of the HMAC-SHA256 digest value.
147 Return FALSE to indicate this interface is not supported.
149 @param[in, out] HmacSha256Context Pointer to the HMAC-SHA256 context.
150 @param[out] HmacValue Pointer to a buffer that receives the HMAC-SHA256 digest
153 @retval FALSE This interface is not supported.
159 IN OUT VOID
*HmacSha256Context
,