]>
git.proxmox.com Git - efi-boot-shim.git/blob - Cryptlib/Hmac/CryptHmacSha1Null.c
b31d0d1402dcceef84365d2264cc734c60d41124
2 HMAC-SHA1 Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2012, 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.
20 Return zero to indicate this interface is not supported.
22 @retval 0 This interface is not supported.
27 HmacSha1GetContextSize (
36 Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for
39 Return FALSE to indicate this interface is not supported.
41 @param[out] HmacSha1Context Pointer to HMAC-SHA1 context being initialized.
42 @param[in] Key Pointer to the user-supplied key.
43 @param[in] KeySize Key size in bytes.
45 @retval FALSE This interface is not supported.
51 OUT VOID
*HmacSha1Context
,
61 Makes a copy of an existing HMAC-SHA1 context.
63 Return FALSE to indicate this interface is not supported.
65 @param[in] HmacSha1Context Pointer to HMAC-SHA1 context being copied.
66 @param[out] NewHmacSha1Context Pointer to new HMAC-SHA1 context.
68 @retval FALSE This interface is not supported.
74 IN CONST VOID
*HmacSha1Context
,
75 OUT VOID
*NewHmacSha1Context
83 Digests the input data and updates HMAC-SHA1 context.
85 Return FALSE to indicate this interface is not supported.
87 @param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
88 @param[in] Data Pointer to the buffer containing the data to be digested.
89 @param[in] DataSize Size of Data buffer in bytes.
91 @retval FALSE This interface is not supported.
97 IN OUT VOID
*HmacSha1Context
,
107 Completes computation of the HMAC-SHA1 digest value.
109 Return FALSE to indicate this interface is not supported.
111 @param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
112 @param[out] HmacValue Pointer to a buffer that receives the HMAC-SHA1 digest
115 @retval FALSE This interface is not supported.
121 IN OUT VOID
*HmacSha1Context
,