From nobody Sun Nov 24 12:27:24 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1724339498; cv=none; d=zohomail.com; s=zohoarc; b=GWji8nSVDq96hgri/utLpN/KMe8uduPLqsA/0kxENHkk8j3qNBtJgFUOGI68sDP3Z3bQNphjXaeFXNTJa7s1AAvJgY7cDNWnlG0FbxV1JdP+HstzNF+UqrEbyD+5g5Y/FCFXZxlWsygAfJZaScNlkeLvGjiwiZo4o9N6Y7YzWok= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1724339498; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2cUhzbDO1c4TVr/5fHme4bDVdctPUWA406Qmu6O3nZE=; b=TWtv2twRmr5WkgHc/QhXlaveRLpk4lLwbpLQqEH+loZFLmWtvzjYWyZ+v9Oo10fZs1YUA088DfKGjhcJskmRb2VcSqXtHClLyv6IqxIgdggLjCWru9/NiI/xHcBlknOy3nUSB1fHUPhEHcB3nNZRMcfYOBItHdYd9N4Tn9nsYao= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1724339498403957.3901770316438; Thu, 22 Aug 2024 08:11:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sh9RR-0007eS-2N; Thu, 22 Aug 2024 11:09:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sh9RD-0007Sr-Nk for qemu-devel@nongnu.org; Thu, 22 Aug 2024 11:09:23 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sh9RB-000527-On for qemu-devel@nongnu.org; Thu, 22 Aug 2024 11:09:23 -0400 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7ae3d7222d4so737132a12.3 for ; Thu, 22 Aug 2024 08:09:21 -0700 (PDT) Received: from localhost.localdomain ([103.103.35.175]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d613919fd2sm1991567a91.13.2024.08.22.08.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 08:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724339360; x=1724944160; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2cUhzbDO1c4TVr/5fHme4bDVdctPUWA406Qmu6O3nZE=; b=UyQdEYgp/OaUJPvLPJ9X/6+OX6fYhYbgE1sK9rjQZtCWVUSo8xSwJ/zx8urt43Catg ytDieAnvxQWmWyPCYBAyUChitZ4LtpQKmox+te0nEY8lhWIOFZiLZuvIPJ33Cmfn5p3s y3cTQxhn0egQ4/zb0D67Nh0Wz0CWz+MlA1i2xmVArlRJXXvSaShoO+dFiuCFwKis1OE8 uD81PGIGSzYAleYCWhAZxsSSZU/KDVoLw2LMJUexz1Zjzk2Art0CfBWjJQVYmkQCUwXg wVn2jxNQBZT4kUqB9eytkXug9hCYVPhLjvJuzcnGg1w23Bo1UUTZHrjKs54gXVPgFfpn 8lpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724339360; x=1724944160; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2cUhzbDO1c4TVr/5fHme4bDVdctPUWA406Qmu6O3nZE=; b=jQdp6JTkIWxfyMzX2xEiD7ELPv8nLz8cS0koE1p7sq0Kbsh2USSFW2d2UFlhIbafcE r95UphuBEIiksBNDFpsZU5bVad0rL3CmQ5EIaOizJ+xR4TdYv1UQPHE4yqU8z+FhcwaM kgko1tOrrBj3XbzAnT9vcluaSqQbTX6J1v8d4ngmMRgjC4W0lvTUElLceuvFES+rZrpo 8hn2E4sPxJsSRn+5vBPLjIrrDKm8AToxtAV60CpGjT45jTJ1DIc0XpDw7oWzDEDkr2jj BRLjXeWdeE2WiE5REKRLEuVw66F7YjITG+GbPamI6tvu/XfgYuuOh3L5Q8TSLw9E5dXq jkAg== X-Gm-Message-State: AOJu0YzX2RB6sBBJgOk4J1eUhWuMkgvSlPJViA/70riYmfLqKB50N9pi BjZ7A5ye4rU87x/DTKILKtyFcH0vl6a/jAr+20Tt5F0pPf0f9MyvWiAjGg== X-Google-Smtp-Source: AGHT+IHky4Et50cZ+iuguauLB28SxkMo5O6AdajkaYSf2qzZO9zdpcBCUAU5dqtchRlKn8o387WWBg== X-Received: by 2002:a17:90a:ba96:b0:2d1:ba43:1303 with SMTP id 98e67ed59e1d1-2d5e9b9a03bmr6526231a91.21.1724339359905; Thu, 22 Aug 2024 08:09:19 -0700 (PDT) From: Dorjoy Chowdhury To: qemu-devel@nongnu.org Cc: graf@amazon.com, agraf@csgraf.de, stefanha@redhat.com, pbonzini@redhat.com, slp@redhat.com, richard.henderson@linaro.org, eduardo@habkost.net, mst@redhat.com, marcel.apfelbaum@gmail.com, berrange@redhat.com, philmd@linaro.org Subject: [PATCH v5 2/8] crypto: Support SHA384 hash when using glib Date: Thu, 22 Aug 2024 21:08:43 +0600 Message-Id: <20240822150849.21759-3-dorjoychy111@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240822150849.21759-1-dorjoychy111@gmail.com> References: <20240822150849.21759-1-dorjoychy111@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=dorjoychy111@gmail.com; helo=mail-pg1-x52f.google.com X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1724339500018116600 QEMU requires minimum glib version 2.66.0 as per the root meson.build file and per glib documentation[1] G_CHECKSUM_SHA384 is available since 2.51. [1] https://docs.gtk.org/glib/enum.ChecksumType.html Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Dorjoy Chowdhury --- crypto/hash-glib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/hash-glib.c b/crypto/hash-glib.c index 82de9db705..18e64faa9c 100644 --- a/crypto/hash-glib.c +++ b/crypto/hash-glib.c @@ -29,7 +29,7 @@ static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALG__MAX] = =3D { [QCRYPTO_HASH_ALG_SHA1] =3D G_CHECKSUM_SHA1, [QCRYPTO_HASH_ALG_SHA224] =3D -1, [QCRYPTO_HASH_ALG_SHA256] =3D G_CHECKSUM_SHA256, - [QCRYPTO_HASH_ALG_SHA384] =3D -1, + [QCRYPTO_HASH_ALG_SHA384] =3D G_CHECKSUM_SHA384, [QCRYPTO_HASH_ALG_SHA512] =3D G_CHECKSUM_SHA512, [QCRYPTO_HASH_ALG_RIPEMD160] =3D -1, }; --=20 2.39.2