[PATCH 2/3] lib: rsa: Leverage existing data buffer instead of systematic copy
Tom Rini
trini at konsulko.com
Mon Apr 11 22:14:15 CEST 2022
On Wed, Mar 09, 2022 at 01:27:16AM -0800, SESA644425 wrote:
> Prior to introduction of modifications in rsassa_pss functions
> related to padding verification, doing a pass to reduce memory
> consumption of function by replacing memory copies of parts of
> const buffer by pointers to the original buffer (masked_db and
> h are subparts of msg buffer which is declared const, salt is a
> subpart of db which is a working buffer, unmodified after being
> filled). New pointers scope is limited to the function where
> they are declared (not returned to caller by any mean), zeroing
> risk of memory fault related to the change.
>
> Signed-off-by: SESA644425 <gioja.hermann at non.se.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220411/416999f6/attachment.sig>
More information about the U-Boot
mailing list