X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FLibrary%2FBaseCryptLibNull%2FHmac%2FCryptHmacSha256Null.c;fp=CryptoPkg%2FLibrary%2FBaseCryptLibNull%2FHmac%2FCryptHmacSha256Null.c;h=cededebaa01c5d963a0d92afab0c67deadba835d;hp=f0a4420e276d5ed35d27acd1e9ffe605a4db3532;hb=a23fdff6fb99bcf7ac226f0a1095c0bdd26b0468;hpb=5cd3d4bc43e543caf5f78baaacced8aaf04c1d91 diff --git a/CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha256Null.c b/CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha256Null.c index f0a4420e27..cededebaa0 100644 --- a/CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha256Null.c +++ b/CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha256Null.c @@ -65,12 +65,12 @@ HmacSha256Free ( } /** - Initializes user-supplied memory pointed by HmacSha256Context as HMAC-SHA256 context for - subsequent use. + Set user-supplied key for subsequent use. It must be done before any + calling to HmacSha256Update(). Return FALSE to indicate this interface is not supported. - @param[out] HmacSha256Context Pointer to HMAC-SHA256 context being initialized. + @param[out] HmacSha256Context Pointer to HMAC-SHA256 context. @param[in] Key Pointer to the user-supplied key. @param[in] KeySize Key size in bytes. @@ -79,7 +79,7 @@ HmacSha256Free ( **/ BOOLEAN EFIAPI -HmacSha256Init ( +HmacSha256SetKey ( OUT VOID *HmacSha256Context, IN CONST UINT8 *Key, IN UINTN KeySize