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 06DDC7803E6 for ; Thu, 15 Feb 2024 11:09:27 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ARRR9B/qpQqq3j0uv4lxL98n8PzkAD9WRQYC8cUJ5uw=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1707995366; v=1; b=LJV9LEEEFhSGHAYVqUEpzdkm8F7NqcFDNZadZVCgxIx3aac4uoJmXCzf12MIvYnH+O8EUDn5 Dg4e91wp9TQq3hiFwwHRcWYXUqT6+OzLs+OwvsG6B4Ir1ceqoaq1Z/MEXNSkg4EKFM4qLzol98e pc+ZuWu54FpKZMmC2GyaS3wE= X-Received: by 127.0.0.2 with SMTP id Ux3ZYY7687511xgYl57qrX2P; Thu, 15 Feb 2024 03:09:26 -0800 X-Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by mx.groups.io with SMTP id smtpd.web11.11657.1707995366073514243 for ; Thu, 15 Feb 2024 03:09:26 -0800 X-Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-dcc86086c9fso643955276.3 for ; Thu, 15 Feb 2024 03:09:25 -0800 (PST) X-Gm-Message-State: g6Uf2QRL1M86InmdhAlXH1L9x7686176AA= X-Google-Smtp-Source: AGHT+IHEKzDZL1kTIGqE5SGX48yS8DHQMnCeznvNxvVtuL5S3raAqQts4E8ESc9vfmGIy3XklS2Deg8IxRbh/Df2Qho= X-Received: by 2002:a25:f608:0:b0:dcc:79ab:e51a with SMTP id t8-20020a25f608000000b00dcc79abe51amr1467667ybd.57.1707995365112; Thu, 15 Feb 2024 03:09:25 -0800 (PST) MIME-Version: 1.0 References: <08efe7f7-b7d2-a806-39da-b3ebadd45ec4@redhat.com> In-Reply-To: <08efe7f7-b7d2-a806-39da-b3ebadd45ec4@redhat.com> From: "eddie wang" Date: Thu, 15 Feb 2024 19:09:14 +0800 Message-ID: Subject: Re: [edk2-devel] The API in BaseCryptLib can't seed the pseudorandom number generator properly To: devel@edk2.groups.io, lersek@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,qw1562435@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: multipart/alternative; boundary="0000000000000400db061169a9a7" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=LJV9LEEE; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --0000000000000400db061169a9a7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Laszlo, Thanks for your reply. How can I enable the DEBUGs at RandomSeed() ? Or any suggesting information that I can provide? BR, Eddie Laszlo Ersek =E6=96=BC 2024=E5=B9=B42=E6=9C=888=E6=97= =A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=885:03=E5=AF=AB=E9=81=93=EF=BC=9A > 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 woul= d > > like to take advantage of the services in BaseCryptLib .However, the AP= I > > 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 > > > >=20 > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115519): https://edk2.groups.io/g/devel/message/115519 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --0000000000000400db061169a9a7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Laszlo,
Thanks for your reply. How can I enable the= DEBUGs at RandomSeed() ? Or any suggesting information that I can provide?=

BR,
Eddie

Laszlo Ersek <lersek@redhat.com> =E6=96=BC 2024=E5= =B9=B42=E6=9C=888=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=885:03=E5=AF= =AB=E9=81=93=EF=BC=9A
On 2/6/24 08:00, eddie wang wrote:
> Hi all,
> We had an UEFI application that used the EDK2(2023/12/05), and=C2=A0 w= e would
> like to take advantage of the services in BaseCryptLib .However, the A= PI
> in CryptPkg "*RandomSeed()*"(X64, in CryptRandTsc.c) always = returned
> false because of=C2=A0 the pseudorandom number generator set up failed= . I am
> not sure this issue is from the *openssl configuration in OpensslLib(w= e
> use the default configuration)* or is from the *openssl 3.0.9*.=C2=A0<= br> >
> Is there any comments about=C2=A0this 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:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#115519) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--0000000000000400db061169a9a7--