From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0703.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe42::703]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 42B5A1A1F09 for ; Fri, 16 Sep 2016 14:33:49 -0700 (PDT) Received: from CS1PR84MB0151.NAMPRD84.PROD.OUTLOOK.COM (10.162.189.30) by CS1PR84MB0166.NAMPRD84.PROD.OUTLOOK.COM (10.162.190.13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.619.10; Fri, 16 Sep 2016 21:33:48 +0000 Received: from CS1PR84MB0151.NAMPRD84.PROD.OUTLOOK.COM ([10.162.189.30]) by CS1PR84MB0151.NAMPRD84.PROD.OUTLOOK.COM ([10.162.189.30]) with mapi id 15.01.0619.012; Fri, 16 Sep 2016 21:33:48 +0000 From: "Palmer, Thomas" To: "edk2-devel@lists.01.org" CC: "Gibbons, Pat" Thread-Topic: RNG algo question Thread-Index: AdIQYfLEVWGnMRQLSv28250nPBbJRw== Date: Fri, 16 Sep 2016 21:33:48 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=thomas.palmer@hpe.com; x-originating-ip: [15.203.227.4] x-ms-office365-filtering-correlation-id: 7721a0cb-024d-4c08-8604-08d3de7924f5 x-microsoft-exchange-diagnostics: 1; CS1PR84MB0166; 6:h9RaigEaJw7vFlTJlw8ACNczcdS9CFALV8pMKFBCyyEf3NDvpgWctxCo1R07j2vn0ZMqNgfVQAqx+LKBhRczXx/pDZnAJDIvzorfhpoEAjb521dZHunCUAlVHC8+jt8bWQ+ZJDrt3UABTSgmTiK4BLo63FPtp4wrvBU/imAQN5vNTBU9GJOI1GUvKYFzBT8P+uPqFNb0kxQGVtJGQ8GLgufisau4h5igOfG4+RJIvXZ1BKmPryX6mXNbYQ7b+qRjLn2iAi1TKyHZ1/EivNxzGWZh+qxRVE+7g6gnlb6XY5ZqPQHGdbYsCVW6NIoENhQt/1Jn9ccjc8XaV2th7aBMeQ==; 5:EHBRAC5HosyVyAT2arCR5wQKprR8tjsUFQvWU44tRbbwV3C3v2ABX/hOY4hIxCmyQbPXrT5frI+YBW0+Fdh5cVbRjh6lS09BFHpBc6D9DLv4Rb2Y5Y+55nLQpfgiWNamllbEArkfQZ9kB9uzwX4UdA==; 24:xKCacrQcxghxR6IzIvMkpRujy+abeuQ3l93Y7UGV+JG1/YRq/3kaOLNcJSbbIukFNDgm1j30PyleySjeqHAgFJ+s1eBCtltsAvdFJznn7PA=; 7:UUekmGqRck3mBXyNEVRajn3OcEmoWsPeV26HXJqWUAG8cXw4cthzxgrMqqhOfcSfpd35EpHD/vxS6gVSDrNk56+S4BklveIkixnuBVNZWl+cNFtxxzz3JQ7rw9dK3SlQecA5DDV8HD8kwGLHIINjg255fBTclIHnkHF1hgX+cVy/8GWgXBC8kWjCPLwzTVCxiNjWyyEMsiNp4R8zghS/12QSHzE1Z8io2jZhOscVWq6naca+ab/vdAvxf/S5t16u x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CS1PR84MB0166; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CS1PR84MB0166; BCL:0; PCL:0; RULEID:; SRVR:CS1PR84MB0166; x-forefront-prvs: 0067A8BA2A x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(199003)(189002)(122556002)(2351001)(4326007)(19625215002)(8676002)(86362001)(3480700004)(2900100001)(8936002)(189998001)(74316002)(19580395003)(2906002)(99286002)(11100500001)(77096005)(97736004)(106356001)(105586002)(54356999)(66066001)(6116002)(790700001)(3846002)(50986999)(102836003)(229853001)(33656002)(16236675004)(15975445007)(3280700002)(2501003)(101416001)(19300405004)(81166006)(7696004)(586003)(7846002)(68736007)(87936001)(5002640100001)(110136003)(3660700001)(5660300001)(7736002)(7116003)(10400500002)(92566002)(450100001)(81156014)(9686002); DIR:OUT; SFP:1102; SCL:1; SRVR:CS1PR84MB0166; H:CS1PR84MB0151.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2016 21:33:48.0200 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0166 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: RNG algo question X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 21:33:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable EDK2 community Why is the RngGetRNG sending requests for "gEfiRngAlgorithmRaw" to "RdRan= dGenerateEntropy", which does AES operations on RDRAND output, whereas the= requests for "gEfiRngAlgorithmSp80090Ctr256Guid" get sent to RdRandGetByte= s which simply reads the rdrand source without modification. Shouldn't the processing be switched, so that "Raw" goes to RdRandGetBytes = and "gEfiRngAlgorithmSp80090Ctr256Guid" goes to RdRandGenerateEntropy? I d= id not see anything in the UEFI 2.5 spec indicating why this was the case. Regards, Thomas Palmer