/* If this interface is not supported, then return FALSE. */
STATIC BOOLEAN HmacMdAll(IN mbedtls_md_type_t MdType, IN CONST VOID *Data, IN UINTN DataSize, IN CONST UINT8 *Key, IN UINTN KeySize, OUT UINT8 *HmacValue)
/* If this interface is not supported, then return FALSE. */
STATIC BOOLEAN HmacMdAll(IN mbedtls_md_type_t MdType, IN CONST VOID *Data, IN UINTN DataSize, IN CONST UINT8 *Key, IN UINTN KeySize, OUT UINT8 *HmacValue)
{
  const mbedtls_md_info_t  *md_info;
  INT32                    Ret;
  md_info = mbedtls_md_info_from_type (MdType);
  ASSERT (md_info != NULL);
  Ret = mbedtls_md_hmac (md_info, Key, KeySize, Data, DataSize, HmacValue);
  if (Ret != 0) {
    return FALSE;
  }
  return TRUE;
}