]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Kdf/CryptHkdfNull.c
2 HMAC-SHA256 KDF Wrapper Implementation which does not provide real capabilities.
4 Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/BaseCryptLib.h>
10 #include <Library/DebugLib.h>
13 Derive key data using HMAC-SHA256 based KDF.
15 @param[in] Key Pointer to the user-supplied key.
16 @param[in] KeySize Key size in bytes.
17 @param[in] Salt Pointer to the salt(non-secret) value.
18 @param[in] SaltSize Salt size in bytes.
19 @param[in] Info Pointer to the application specific info.
20 @param[in] InfoSize Info size in bytes.
21 @param[Out] Out Pointer to buffer to receive hkdf value.
22 @param[in] OutSize Size of hkdf bytes to generate.
24 @retval TRUE Hkdf generated successfully.
25 @retval FALSE Hkdf generation failed.
30 HkdfSha256ExtractAndExpand (