From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A8A2BD806DA for ; Wed, 7 Feb 2024 21:03:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=OqYkbQCh8jgn313QEpChcj6suWM1Hxx9BmexGeUItLE=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1707339816; v=1; b=UcsTsuqyY1rwB+UdzYcOGapXIKbYDHGt09CulpHRvejtXZ1jdDUDL397TVylncnfORaznwrp 9vq6k4wQ7MHc6JUUzoiZktTgwT+0Lbjm3nYoCVz1tcDaQzn+bM5zYd307OljxP5yzFhPw3ST/83 TRs3+jbHMqciotkqV0aR/T4c= X-Received: by 127.0.0.2 with SMTP id FxWuYY7687511xEDoLDvaKO8; Wed, 07 Feb 2024 13:03:36 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.1392.1707339815376881118 for ; Wed, 07 Feb 2024 13:03:35 -0800 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-VGXQ5WyHM7SdqoqXb4aLUA-1; Wed, 07 Feb 2024 16:03:33 -0500 X-MC-Unique: VGXQ5WyHM7SdqoqXb4aLUA-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 948FF1C07F36; Wed, 7 Feb 2024 21:03:32 +0000 (UTC) X-Received: from [10.39.195.126] (unknown [10.39.195.126]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 33BD4492BC6; Wed, 7 Feb 2024 21:03:32 +0000 (UTC) Message-ID: <08efe7f7-b7d2-a806-39da-b3ebadd45ec4@redhat.com> Date: Wed, 7 Feb 2024 22:03:31 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] The API in BaseCryptLib can't seed the pseudorandom number generator properly To: devel@edk2.groups.io, qw1562435@gmail.com References: From: "Laszlo Ersek" In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: cjIKe7ajtteBVFm4qNbeeCedx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=UcsTsuqy; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none) On 2/6/24 08:00, eddie wang wrote: > Hi all, > We had an UEFI application that used the EDK2(2023/12/05), and  we would > like to take advantage of the services in BaseCryptLib .However, the API > in CryptPkg "*RandomSeed()*"(X64, in CryptRandTsc.c) always returned > false because of  the pseudorandom number generator set up failed. I am > not sure this issue is from the *openssl configuration in OpensslLib(we > use the default configuration)* or is from the *openssl 3.0.9*.  > > Is there any comments about this issue? Can you narrow it down by inserting DEBUGs starting at RandomSeed() [CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c], and then digging down as necessary? Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115254): https://edk2.groups.io/g/devel/message/115254 Mute This Topic: https://groups.io/mt/104198931/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-