public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Rafael Machado <rafaelrodrigues.machado@gmail.com>
To: Amit kumar <akamit91@hotmail.com>,
	 "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: How do i generate a SHA256 hash in UEFI
Date: Tue, 26 Sep 2017 11:11:56 +0000	[thread overview]
Message-ID: <CACgnt79KdEwC5-8_pkXgZ3WLpRkD+H+C1JCWk8VUwqEgr2Nj5A@mail.gmail.com> (raw)
In-Reply-To: <DM5PR11MB1578EFDEB1DC098763686F2BDC7A0@DM5PR11MB1578.namprd11.prod.outlook.com>

Hi Amit

You can use the CryptoPkg functionalities.

https://github.com/tianocore/edk2/tree/UDK2017/CryptoPkg

At this package you will find some hash functions that are wrapped from
OpenSSL

https://github.com/tianocore/edk2/tree/UDK2017/CryptoPkg/Library/BaseCryptLib/Hash

With this you'll not need to rely on the system hash protocols.

Hope this can help.
Rafael Machado

Em seg, 25 de set de 2017 às 15:41, Amit kumar <akamit91@hotmail.com>
escreveu:

> 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
> without using this protocol ?
> Best Regards
> Amit Kumar
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
>


      reply	other threads:[~2017-09-26 11:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25 18:41 How do i generate a SHA256 hash in UEFI Amit kumar
2017-09-26 11:11 ` Rafael Machado [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACgnt79KdEwC5-8_pkXgZ3WLpRkD+H+C1JCWk8VUwqEgr2Nj5A@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox