<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/image-host.c, branch v2020.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/image-host.c?h=v2020.10</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/image-host.c?h=v2020.10'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2020-08-07T15:47:18Z</updated>
<entry>
<title>mkimage: fit: include image cipher in configuration signature</title>
<updated>2020-08-07T15:47:18Z</updated>
<author>
<name>Patrick Oppenlander</name>
<email>patrick.oppenlander@gmail.com</email>
</author>
<published>2020-07-30T04:30:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ef40129c33396d90a42e10f4a772390ac5b2ba05'/>
<id>urn:sha1:ef40129c33396d90a42e10f4a772390ac5b2ba05</id>
<content type='text'>
This patch addresses issue #2 for signed configurations.

-----8&lt;-----

Including the image cipher properties in the configuration signature
prevents an attacker from modifying cipher, key or iv properties.

Signed-off-by: Patrick Oppenlander &lt;patrick.oppenlander@gmail.com&gt;
Reviewed-by: Philippe Reynes &lt;philippe.reynes@softathome.com&gt;
</content>
</entry>
<entry>
<title>mkimage: fit: don't cipher ciphered data</title>
<updated>2020-08-07T15:47:18Z</updated>
<author>
<name>Patrick Oppenlander</name>
<email>patrick.oppenlander@gmail.com</email>
</author>
<published>2020-07-30T04:22:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b33e5cc18263d438d11bb9a728b4117cc560cae4'/>
<id>urn:sha1:b33e5cc18263d438d11bb9a728b4117cc560cae4</id>
<content type='text'>
Previously, mkimage -F could be run multiple times causing already
ciphered image data to be ciphered again.

Signed-off-by: Patrick Oppenlander &lt;patrick.oppenlander@gmail.com&gt;
Reviewed-by: Philippe Reynes &lt;philippe.reynes@softathome.com&gt;
</content>
</entry>
<entry>
<title>mkimage: fit: handle FDT_ERR_NOSPACE when ciphering</title>
<updated>2020-08-07T15:47:18Z</updated>
<author>
<name>Patrick Oppenlander</name>
<email>patrick.oppenlander@gmail.com</email>
</author>
<published>2020-07-30T04:22:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=04aeebb131081698204ad38bd8aba7140cd3ba22'/>
<id>urn:sha1:04aeebb131081698204ad38bd8aba7140cd3ba22</id>
<content type='text'>
Also replace fdt_delprop/fdt_setprop with fdt_setprop as fdt_setprop can
replace an existing property value.

Signed-off-by: Patrick Oppenlander &lt;patrick.oppenlander@gmail.com&gt;
Reviewed-by: Philippe Reynes &lt;philippe.reynes@softathome.com&gt;
</content>
</entry>
<entry>
<title>mkimage: fit: only process one cipher node</title>
<updated>2020-08-07T15:47:18Z</updated>
<author>
<name>Patrick Oppenlander</name>
<email>patrick.oppenlander@gmail.com</email>
</author>
<published>2020-07-30T04:22:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c520266f9a796f5f447f5e3b1da04a874500290a'/>
<id>urn:sha1:c520266f9a796f5f447f5e3b1da04a874500290a</id>
<content type='text'>
Previously mkimage would process any node matching the regex cipher.*
and apply the ciphers to the image data in the order they appeared in
the FDT. This meant that data could be inadvertently ciphered multiple
times.

Switch to processing a single cipher node which exactly matches
FIT_CIPHER_NODENAME.

Signed-off-by: Patrick Oppenlander &lt;patrick.oppenlander@gmail.com&gt;
Reviewed-by: Philippe Reynes &lt;philippe.reynes@softathome.com&gt;
</content>
</entry>
<entry>
<title>libfdt: split fdt_region declarations out to &lt;fdt_region.h&gt;</title>
<updated>2020-04-26T20:24:08Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>masahiroy@kernel.org</email>
</author>
<published>2020-04-16T09:30:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=64045a6a173e6cf74a9c30bbe21a93d105be289e'/>
<id>urn:sha1:64045a6a173e6cf74a9c30bbe21a93d105be289e</id>
<content type='text'>
fdt_region APIs are not part of libfdt. They are U-Boot extension
for the verified boot. Split the declarations related to fdt_region
out of &lt;fdt_region.h&gt;. This allows &lt;linux/libfdt.h&gt; to become a
simple wrapper file, like Linux does.

Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: image-host.c: use correct output format</title>
<updated>2020-04-24T14:51:32Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2020-04-11T16:36:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b21c08a12b8ebeea0cb77830d662ee118245774e'/>
<id>urn:sha1:b21c08a12b8ebeea0cb77830d662ee118245774e</id>
<content type='text'>
When building on a 32bit host the following warning occurs:

tools/image-host.c: In function ‘fit_image_read_data’:
tools/image-host.c:310:42: warning: format ‘%ld’ expects argument of type
‘long int’, but argument 3 has type ‘ssize_t’ {aka ‘int’} [-Wformat=]
   printf("Can't read all file %s (read %ld bytes, expexted %ld)\n",
                                        ~~^
                                        %d
          filename, n, sbuf.st_size);
                    ~

n is of type ssize_t so we should use %zd for printing.

Fixes: 7298e422504e ("mkimage: fit: add support to encrypt image with aes")
Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>image: Use constants for 'required' and 'key-name-hint'</title>
<updated>2020-04-01T13:45:09Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-03-18T17:44:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=72188f546291cfadea99e9383c133d6aaa37d87d'/>
<id>urn:sha1:72188f546291cfadea99e9383c133d6aaa37d87d</id>
<content type='text'>
These are used in multiple places so update them to use a shared #define.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Philippe Reynes &lt;philippe.reynes@softathome.com&gt;
</content>
</entry>
<entry>
<title>fit_check_sign: Allow selecting the configuration to verify</title>
<updated>2020-04-01T13:45:09Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-03-18T17:44:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c3aa81e35cc53fcd825e89510cd648288e0b6b92'/>
<id>urn:sha1:c3aa81e35cc53fcd825e89510cd648288e0b6b92</id>
<content type='text'>
This tool always verifies the default configuration. It is useful to be
able to verify a specific one. Add a command-line flag for this and plumb
the logic through.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>image: Be a little more verbose when checking signatures</title>
<updated>2020-04-01T13:45:09Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-03-18T17:43:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=382cf62039f775a1aec771645e3cbc32e1e2f0e3'/>
<id>urn:sha1:382cf62039f775a1aec771645e3cbc32e1e2f0e3</id>
<content type='text'>
It is useful to be a little more specific about what is being checked.
Update a few messages to help with this.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>tools: image-host.c: remove uboot_aes.h</title>
<updated>2020-02-25T16:29:39Z</updated>
<author>
<name>Philippe Reynes</name>
<email>philippe.reynes@softathome.com</email>
</author>
<published>2020-02-18T16:23:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a3ca99c26084f25aee001c40189d999815c99d8e'/>
<id>urn:sha1:a3ca99c26084f25aee001c40189d999815c99d8e</id>
<content type='text'>
The include uboot_aes.h is not useful and
it breaks the compilation on android, so
we remove it.

Signed-off-by: Philippe Reynes &lt;philippe.reynes@softathome.com&gt;
Reported-by: Praneeth Bajjuri &lt;praneeth@ti.com&gt;
</content>
</entry>
</feed>
