From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.7.42; helo=nam03-co1-obe.outbound.protection.outlook.com; envelope-from=akamit91@hotmail.com; receiver=edk2-devel@lists.01.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-oln040092007042.outbound.protection.outlook.com [40.92.7.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 35B9F20945BDB for ; Mon, 25 Sep 2017 11:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xZe0QJh7ocL6krGB1HL+s4V0w4KFAhHBQknEVuJG6H0=; b=Q0GaKB7vRk9QR6WOdymu8SRrKuZ6CKC4NAgUdVqOrAydcQRjJ2kiEJleUu2tt6Nslob8nFs/LJ9kMJGajA4EYHOSyviyR9vg1y61NaGTfUn4bRCYyFGRjEi3R9Dg5utimNQyX1JzPXaTXNm2WlDpG+Zd+fv8NDfBpc7G2E+1/ZL5w7veWOJgFmf6vv1xYrxS2+PEkehEFbJuWQA31UPY6lBVDlOEEeaHP+RWHOBTW4OyhpQqTgee6n1E9uxvlVK7Pw4buybnW/PtaaWWjZ4H3OhialpcMPIq+trpwujiOb6oWLuTBgGkuZo/kKynr8Gbms0ynkIJNEkk/KgskXJj2w== Received: from CO1NAM03FT057.eop-NAM03.prod.protection.outlook.com (10.152.80.53) by CO1NAM03HT004.eop-NAM03.prod.protection.outlook.com (10.152.80.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.56.11; Mon, 25 Sep 2017 18:41:30 +0000 Received: from DM5PR11MB1578.namprd11.prod.outlook.com (10.152.80.55) by CO1NAM03FT057.mail.protection.outlook.com (10.152.81.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.56.11 via Frontend Transport; Mon, 25 Sep 2017 18:41:30 +0000 Received: from DM5PR11MB1578.namprd11.prod.outlook.com ([10.172.37.22]) by DM5PR11MB1578.namprd11.prod.outlook.com ([10.172.37.22]) with mapi id 15.20.0077.011; Mon, 25 Sep 2017 18:41:30 +0000 From: Amit kumar To: "edk2-devel@lists.01.org" Thread-Topic: How do i generate a SHA256 hash in UEFI Thread-Index: AQHTNi1yW5Jhe5ljRU+o2UI16/YK9w== Date: Mon, 25 Sep 2017 18:41:29 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:2328ECCDEA45C9A3D5BDF2C2BD4DBCB685053E97EB23E6AEFF62E105FA4E827F; UpperCasedChecksum:48723BEAE24303DA844F81A12B37C251D4917BE89ECD6760BC95F2E0D52B8C21; SizeAsReceived:6836; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [DGp22KmWs3hFeBXpU89PHSxFm4lTTi+a] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CO1NAM03HT004; 6:KYovISY/ZYlaSWKYZ1kMWByr17n2mPaaG9cXu3Q6ulX4sMn1aNmUUux4SRKTOYc7nVQP/PWT7QOH8xb8BEtPU9FGit/HeUZl8bKZqyzNkDjoTJcNeMH4x+7VNTKQMA8roOUkNGWm8ez2HN49RNGuFkzeHbtGtiTwnTv1zhqlGWDkoumZaNZQ+1pucB++PsRwoiMb2+OzjRnFyzuFIB5KCpUgbVpD8+iXGOjkpCptrCL9pKLH+RbXEUturRJhKlgfy6m7EmieMDO/IDcjgIew7HLHwBhTPqT2xTnOKipgiQflE8gTOMLBSc7ap9PuJtv9YCLlK2S9182En0bS5fKnBw==; 5:pDefTm6521NwLBl6s/FJ4Qss6hYxOtOSYfCG0FM3Q1ndOnfCSY84UjFlyW9j8+UInJX9A0rYFGBruce+hJwxqUvpmlKFfOsyu1Lt2/j6ekRR95XidzPMvl9A1tlbpiZIHrjT4An1jm3cGnrvBC3K4Q==; 24:JRRz2zG1kp5Ze9xpNyKebMgdTNKMol5og0rKvT0EYOQDvN2CNl8I2poO/lM3ZDYQuoPTuaHLJLMIELM4XVH14HEp6Q68osL63qukY9741Ww=; 7:C44m81OZdQjZM7+M4V/20fEWlSdCU2uH4UcGuGMMBNrExsoMxsrrj4xOuE9+1qOms1TdNUA8iNMCn5C+eFjRNbJwmyYKBsQ9RnZJevvc90pC57WH9kjtT4m+CmxJDXuB4RAFYsnBsjPE6XtdwAQJDfV6RdfvRpzyxfL4c7NWKGI2e92anu7VH22pJkEgxuROWk4PGQqADJ95961shwjeF23KzYYpfQM4/DmT0McsJNg= x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: d19e2515-a8ee-468f-510c-08d504450985 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045); SRVR:CO1NAM03HT004; x-ms-traffictypediagnostic: CO1NAM03HT004: authentication-results: outbound.protection.outlook.com; spf=skipped (originating message); dkim=none (message not signed) header.d=none; dmarc=none action=none header.from=hotmail.com; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031); SRVR:CO1NAM03HT004; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1NAM03HT004; x-forefront-prvs: 04410E544A x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:CO1NAM03HT004; H:DM5PR11MB1578.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2017 18:41:29.9748 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM03HT004 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: How do i generate a SHA256 hash in UEFI X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 18:38:19 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , I am trying to write a uefi standalone application ( not a uefi shell app),= which generates a sh256 hash, can some body tell me the right way to do it= . Do i really need to use hash protocol. Is there any other way to do it with= out using this protocol ? Best Regards Amit Kumar