]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c
b77a2266db2efc209edd507c4e6aab19cf811c36
2 HMAC-MD5 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-MD5 operations.
13 (NOTE: This API is deprecated.
14 Use HmacMd5New() / HmacMd5Free() for HMAC-MD5 Context operations.)
16 Return zero to indicate this interface is not supported.
18 @retval 0 This interface is not supported.
23 HmacMd5GetContextSize (
32 Allocates and initializes one HMAC_CTX context for subsequent HMAC-MD5 use.
34 Return NULL to indicate this interface is not supported.
36 @retval NULL This interface is not supported.
50 Release the specified HMAC_CTX context.
52 This function will do nothing.
54 @param[in] HmacMd5Ctx Pointer to the HMAC_CTX context to be released.
68 Set user-supplied key for subsequent use. It must be done before any
69 calling to HmacMd5Update().
71 Return FALSE to indicate this interface is not supported.
73 @param[out] HmacMd5Context Pointer to HMAC-MD5 context.
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
*HmacMd5Context
,
93 Makes a copy of an existing HMAC-MD5 context.
95 Return FALSE to indicate this interface is not supported.
97 @param[in] HmacMd5Context Pointer to HMAC-MD5 context being copied.
98 @param[out] NewHmacMd5Context Pointer to new HMAC-MD5 context.
100 @retval FALSE This interface is not supported.
106 IN CONST VOID
*HmacMd5Context
,
107 OUT VOID
*NewHmacMd5Context
115 Digests the input data and updates HMAC-MD5 context.
117 Return FALSE to indicate this interface is not supported.
119 @param[in, out] HmacMd5Context Pointer to the HMAC-MD5 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
*HmacMd5Context
,
139 Completes computation of the HMAC-MD5 digest value.
141 Return FALSE to indicate this interface is not supported.
143 @param[in, out] HmacMd5Context Pointer to the HMAC-MD5 context.
144 @param[out] HmacValue Pointer to a buffer that receives the HMAC-MD5 digest
147 @retval FALSE This interface is not supported.
153 IN OUT VOID
*HmacMd5Context
,