[U-Boot] [PATCH v2 03/16] efi_loader: add signature verification functions

AKASHI Takahiro takahiro.akashi at linaro.org
Wed Nov 27 01:29:23 UTC 2019


On Tue, Nov 26, 2019 at 01:55:29PM +0200, Ilias Apalodimas wrote:
> [...]
> > +	/* verify signature */
> > +		/* against digest */
> > +		c = 0x31;
> > +		regtmp[0].data = &c;
> > +		regtmp[0].size = 1;
> 
> Is there a reason for '1' instea of sizeof(c)?

Yes, it explicitly says that we want to add *exact one byte* for
hash calculation here.

Thanks,
-Takahiro Akashi

> > +		regtmp[1].data = ps_info->authattrs;
> > +		regtmp[1].size = ps_info->authattrs_len;
> > +
> > +
> > +out:
> 
> Thanks
> /Ilias


More information about the U-Boot mailing list