]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha256Null.c
2 HMAC-SHA256 Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2016 - 2020, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "InternalCryptLib.h"
12 Allocates and initializes one HMAC_CTX context for subsequent HMAC-SHA256 use.
14 Return NULL to indicate this interface is not supported.
16 @return NULL This interface is not supported..
30 Release the specified HMAC_CTX context.
32 This function will do nothing.
34 @param[in] HmacSha256Ctx Pointer to the HMAC_CTX context to be released.
40 IN VOID
*HmacSha256Ctx
48 Set user-supplied key for subsequent use. It must be done before any
49 calling to HmacSha256Update().
51 Return FALSE to indicate this interface is not supported.
53 @param[out] HmacSha256Context Pointer to HMAC-SHA256 context.
54 @param[in] Key Pointer to the user-supplied key.
55 @param[in] KeySize Key size in bytes.
57 @retval FALSE This interface is not supported.
63 OUT VOID
*HmacSha256Context
,
73 Makes a copy of an existing HMAC-SHA256 context.
75 Return FALSE to indicate this interface is not supported.
77 @param[in] HmacSha256Context Pointer to HMAC-SHA256 context being copied.
78 @param[out] NewHmacSha256Context Pointer to new HMAC-SHA256 context.
80 @retval FALSE This interface is not supported.
86 IN CONST VOID
*HmacSha256Context
,
87 OUT VOID
*NewHmacSha256Context
95 Digests the input data and updates HMAC-SHA256 context.
97 Return FALSE to indicate this interface is not supported.
99 @param[in, out] HmacSha256Context Pointer to the HMAC-SHA256 context.
100 @param[in] Data Pointer to the buffer containing the data to be digested.
101 @param[in] DataSize Size of Data buffer in bytes.
103 @retval FALSE This interface is not supported.
109 IN OUT VOID
*HmacSha256Context
,
119 Completes computation of the HMAC-SHA256 digest value.
121 Return FALSE to indicate this interface is not supported.
123 @param[in, out] HmacSha256Context Pointer to the HMAC-SHA256 context.
124 @param[out] HmacValue Pointer to a buffer that receives the HMAC-SHA256 digest
127 @retval FALSE This interface is not supported.
133 IN OUT VOID
*HmacSha256Context
,