uboot/lib
mario.six@gdsys.cc 2b9ec762c4 rsa: Fix return value and masked error
When signing images, we repeatedly call fit_add_file_data() with
successively increasing size values to include the keys in the DTB.

Unfortunately, if large keys are used (such as 4096 bit RSA keys), this
process fails sometimes, and mkimage needs to be called repeatedly to
integrate the keys into the DTB.

This is because fit_add_file_data actually returns the wrong error
code, and the loop terminates prematurely, instead of trying again with
a larger size value.

This patch corrects the return value by fixing the return value of
fdt_add_bignum, fixes a case where an error is masked by a unconditional
setting of a return value variable, and also removes a error message,
which is misleading, since we actually allow the function to fail. A
(hopefully helpful) comment is also added to explain the lack of error
message.

This is probably related to 1152a05 ("tools: Correct error handling in
fit_image_process_hash()") and the corresponding error reported here:

https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html

Signed-off-by: Mario Six <mario.six@gdsys.cc>
2016-07-22 14:46:24 -04:00
..
bzip2 bzlib: Try another way to fix an unused variable 2016-02-06 13:59:48 +01:00
dhry cmd_dhry.c: Use lldiv for vax_mips calculation as well 2016-03-17 10:14:25 -04:00
efi efi_stub: Move carriage return before line feed in putc() 2016-03-27 09:12:25 -04:00
efi_loader efi_loader: Add debug output for efi_add_memory_map() 2016-07-22 14:46:23 -04:00
libfdt dm: Add a more efficient libfdt library 2016-07-14 20:40:24 -06:00
lzma
lzo lib/lzo: bugfix when input data is not compressed 2016-06-24 17:23:11 -04:00
rsa rsa: Fix return value and masked error 2016-07-22 14:46:24 -04:00
tizen exynos: Allow tizen to be built without an LCD 2016-05-25 13:25:18 +09:00
zlib
Kconfig lib: Enable private libgcc by default 2016-06-02 21:21:47 -04:00
Makefile dm: Don't include fdtdec functions when of-platdata is enabled 2016-07-14 20:40:24 -06:00
addr_map.c
aes.c
asm-offsets.c
bch.c
bitrev.c
circbuf.c
crc7.c
crc8.c lib/crc8: Add crc start value 2016-04-11 20:48:26 -04:00
crc16.c lib/crc16.c: Rename cyg_crc16() to crc16_ccitt() and add crc start value 2016-03-14 19:18:42 -04:00
crc32.c
ctype.c
display_options.c
div64.c lib: Don't instrument the div64 function 2016-02-26 08:53:10 -07:00
errno.c
errno_str.c
fdtdec.c sandbox: Find keyboard driver using driver model 2016-07-11 14:06:44 -06:00
fdtdec_common.c
fdtdec_test.c
gunzip.c gunzip.c: use block layer for writes 2016-04-18 17:11:41 -04:00
gzip.c
hang.c Change my mailaddress 2016-05-02 18:37:09 -04:00
hashtable.c Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04:00
initcall.c
ldiv.c
linux_compat.c
linux_string.c
list_sort.c
lmb.c
lz4.c
lz4_wrapper.c
md5.c
membuff.c
net_utils.c
panic.c
physmem.c lib/physmem.c: Switch to __weak for arch_phys_memset 2016-04-01 17:17:43 -04:00
qsort.c
rand.c
rbtree.c
rc4.c
sha1.c
sha256.c
slre.c
string.c Remove unneeded remnants of bcopy(). 2016-06-06 13:39:18 -04:00
strmhz.c
strto.c
time.c timer: Provide an early timer 2016-02-26 08:53:10 -07:00
tiny-printf.c tiny-printf: Support assert() 2016-07-14 20:40:24 -06:00
tpm.c dm: Use uclass_first_device_err() where it is useful 2016-03-14 15:34:50 -06:00
trace.c
uuid.c
vsprintf.c